From ccdf069cdd27e2d12e79517b40fb94ce58ee8b4a Mon Sep 17 00:00:00 2001 From: Hazel Koehler Date: Fri, 3 May 2024 00:52:47 -0400 Subject: [PATCH] use duck-typing instead of type field --- packages/backend/src/core/activitypub/models/ApNoteService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index 1bbcea2770..41046c163e 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -448,7 +448,7 @@ export class ApNoteService { const limit = promiseLimit(2); const filePromises = attachments - .filter(attach => toArray(attach.type).includes('Image')) + .filter(attach => typeof(attach.url) === 'string') .map(attach => ( limit(() => this.apImageService.resolveImage(actor, { ...attach,