From 5e322e52f359137d95423b787f11774a66bed2a4 Mon Sep 17 00:00:00 2001 From: Nya Candy Date: Fri, 26 Jan 2024 12:17:27 +0800 Subject: [PATCH] fix(edit): tweak note update content --- packages/backend/src/core/NoteUpdateService.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/NoteUpdateService.ts b/packages/backend/src/core/NoteUpdateService.ts index 5bb50916c..4500d671b 100644 --- a/packages/backend/src/core/NoteUpdateService.ts +++ b/packages/backend/src/core/NoteUpdateService.ts @@ -77,8 +77,13 @@ export class NoteUpdateService { }); if (this.userEntityService.isLocalUser(user) && !note.localOnly) { - const content = this.apRendererService.renderUpdateNote(await this.apRendererService.renderNote(newNote, false), newNote); - this.deliverToConcerned(user, note, content); + const content = this.apRendererService.addContext( + this.apRendererService.renderUpdateNote( + await this.apRendererService.renderNote(newNote, false), newNote, + ), + ); + + this.deliverToConcerned(user, newNote, content); } }