From b427b1ae737f362a8400134b6c303e74ce65f0d1 Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 6 Feb 2024 17:24:30 -0600 Subject: [PATCH] fix: Use proper source text for note updates --- packages/backend/src/core/activitypub/ApRendererService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts index 6a6a2f3e1a..3ba85ba0f2 100644 --- a/packages/backend/src/core/activitypub/ApRendererService.ts +++ b/packages/backend/src/core/activitypub/ApRendererService.ts @@ -457,7 +457,7 @@ export class ApRendererService { mediaType: 'text/x.misskeymarkdown', }, }), - contentMap: note.lang ? { + contentMap: note.lang && content ? { [note.lang]: content, } : undefined, _misskey_quote: quote, @@ -755,7 +755,7 @@ export class ApRendererService { mediaType: 'text/x.misskeymarkdown', }, }), - contentMap: note.lang ? { + contentMap: note.lang && content ? { [note.lang]: content, } : undefined, _misskey_quote: quote,