mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-02 16:58:06 +09:00
maybe Support CW in ActivityPub
This commit is contained in:
parent
f0687911a6
commit
293ac35f14
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user