diff options
Diffstat (limited to 'src/remote/activitypub/models')
| -rw-r--r-- | src/remote/activitypub/models/note.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index dbad63ea42..02bce6fec7 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -81,7 +81,9 @@ export async function createNote(value: any, resolver?: Resolver, silent = false // 添付メディア // TODO: attachmentは必ずしもImageではない // TODO: attachmentは必ずしも配列ではない + // Noteがsensitiveなら添付もsensitiveにする const media = note.attachment + .map(attach => attach.sensitive = note.sensitive) ? await Promise.all(note.attachment.map(x => resolveImage(actor, x))) : []; |