Skip to content
Snippets Groups Projects
Commit e5468713 authored by rinsuki's avatar rinsuki
Browse files

maybe Support CW in ActivityPub

parent 161bce1a
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,
......
......@@ -49,6 +49,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