Skip to content
Snippets Groups Projects
Unverified Commit 4d90d554 authored by syuilo's avatar syuilo Committed by GitHub
Browse files

Merge pull request #1721 from rinsuki/activitypub/support-cw

maybe Support CW in ActivityPub
parents 77013f98 e5468713
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false
media,
reply,
renote: undefined,
cw: note.summary,
text: text,
viaMobile: false,
geo: undefined,
......
......@@ -62,6 +62,7 @@ export default async function renderNote(note: INote, dive = true) {
id: `${config.url}/notes/${note._id}`,
type: 'Note',
attributedTo,
summary: note.cw,
content: toHtml(note),
published: note.createdAt.toISOString(),
to: 'https://www.w3.org/ns/activitystreams#Public',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment