From 629c605b67658090638c76e99c0f12e2a3e7bb9a Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Wed, 1 Nov 2023 01:38:03 +0100 Subject: [PATCH] upd: renderUpdate on attachments --- packages/backend/src/core/activitypub/ApRendererService.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts index 8facc2536..d0241c080 100644 --- a/packages/backend/src/core/activitypub/ApRendererService.ts +++ b/packages/backend/src/core/activitypub/ApRendererService.ts @@ -675,6 +675,10 @@ export class ApRendererService { const files = await getPromisedFiles(note.fileIds); + if (note.fileIds.length > 0) { + files.map(x => this.renderUpdate(this.renderDocument(x), { id: note.userId })); + } + const text = note.text ?? ''; let poll: MiPoll | null = null;