mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 08:26:44 -06:00
Merge pull request #1721 from rinsuki/activitypub/support-cw
maybe Support CW in ActivityPub
This commit is contained in:
commit
4d90d554f8
2 changed files with 2 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue