From 6a0aa612cc970496fd43fc2618332e50355e2eab Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sat, 23 Sep 2023 02:50:54 +0200 Subject: [PATCH] fix: no such note --- packages/backend/src/core/activitypub/models/ApNoteService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index 313e09d4ab..dc544a01d6 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -485,7 +485,7 @@ export class ApNoteService { const poll = await this.apQuestionService.extractPollFromQuestion(note, resolver).catch(() => undefined); try { - return await this.noteEditService.edit(actor, note.id!, { + return await this.noteEditService.edit(actor, UpdatedNote.id, { createdAt: note.published ? new Date(note.published) : null, files, reply,