From b2cb18e1646db5ab886bbca833eefae3444e374b Mon Sep 17 00:00:00 2001 From: GrapeApple0 <84321396+GrapeApple0@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:21:50 +0000 Subject: [PATCH] =?UTF-8?q?wip:=20=E5=8F=A4=E3=81=84=E3=83=8E=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=81=AE=E6=83=85=E5=A0=B1=E3=82=92=E8=A8=98=E9=8C=B2?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/NoteEditService.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/backend/src/core/NoteEditService.ts b/packages/backend/src/core/NoteEditService.ts index 2fc32a3544..6758577b7c 100644 --- a/packages/backend/src/core/NoteEditService.ts +++ b/packages/backend/src/core/NoteEditService.ts @@ -311,16 +311,16 @@ export class NoteEditService implements OnApplicationShutdown { } this.noteHistoryRepository.insert(new MiNoteHistory({ id: this.idService.gen(), - text: note.text, - cw: note.cw, - targetId: note.id, - fileIds: note.fileIds, - attachedFileTypes: note.attachedFileTypes, - mentions: note.mentions, - mentionedRemoteUsers: note.mentionedRemoteUsers, - emojis: note.emojis, - tags: note.tags, - hasPoll: note.hasPoll, + text: targetNote.text, + cw: targetNote.cw, + targetId: targetNote.id, + fileIds: targetNote.fileIds, + attachedFileTypes: targetNote.attachedFileTypes, + mentions: targetNote.mentions, + mentionedRemoteUsers: targetNote.mentionedRemoteUsers, + emojis: targetNote.emojis, + tags: targetNote.tags, + hasPoll: targetNote.hasPoll, })); setImmediate('post updated', { signal: this.#shutdownController.signal }).then( async () => this.postNoteEdited((await this.notesRepository.findOneByOrFail({ id: note.id })), user, data, silent, tags!, mentionedUsers!),