mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
feat: support multiple values for "image"
This commit is contained in:
parent
4b24cce2c5
commit
13c69cb8ad
1 changed files with 4 additions and 3 deletions
|
@ -443,11 +443,12 @@ export class ApNoteService {
|
|||
// 添付ファイル
|
||||
const attachments = toArray(note.attachment);
|
||||
if (note.image)
|
||||
attachments.push(note.image);
|
||||
|
||||
for (const image of toArray(note.image))
|
||||
attachments.push(image);
|
||||
|
||||
const limit = promiseLimit<MiDriveFile>(2);
|
||||
const filePromises = attachments
|
||||
.filter(attach => toArray(attach.type)?.includes('Image'))
|
||||
.filter(attach => toArray(attach.type).includes('Image'))
|
||||
.map(attach => (
|
||||
limit(() => this.apImageService.resolveImage(actor, {
|
||||
...attach,
|
||||
|
|
Loading…
Reference in a new issue