From 220442be39dbcaefe60ad10d36505fdf668e958d Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 6 Oct 2023 18:28:30 +0200 Subject: [PATCH] revert: recent edit on note edit --- packages/backend/src/core/NoteEditService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/NoteEditService.ts b/packages/backend/src/core/NoteEditService.ts index 21eafe0573..70cd60c3d6 100644 --- a/packages/backend/src/core/NoteEditService.ts +++ b/packages/backend/src/core/NoteEditService.ts @@ -365,7 +365,7 @@ export class NoteEditService implements OnApplicationShutdown { }); const note = new MiNote({ - id: this.idService.genId(new Date(oldnote.createdAt!)), + id: oldnote.id, createdAt: new Date(oldnote.createdAt!), updatedAt: data.updatedAt ? data.updatedAt : new Date(), fileIds: data.files ? data.files.map(file => file.id) : [], @@ -622,6 +622,7 @@ export class NoteEditService implements OnApplicationShutdown { //#region AP deliver if (this.userEntityService.isLocalUser(user)) { (async () => { + note.id = `https://dev.joinsharkey.org/notes/${note.id}`; const noteActivity = await this.renderNoteOrRenoteActivity(data, note); /* // フォロワーに配送