diff --git a/packages/backend/src/server/api/endpoints/notes/unrenote.ts b/packages/backend/src/server/api/endpoints/notes/unrenote.ts index 1c6e32cb2..1b71de496 100644 --- a/packages/backend/src/server/api/endpoints/notes/unrenote.ts +++ b/packages/backend/src/server/api/endpoints/notes/unrenote.ts @@ -66,7 +66,7 @@ export default class extends Endpoint { // eslint- }); for (const note of renotes) { - this.noteDeleteService.delete(await this.usersRepository.findOneByOrFail({ id: me.id }), note, false, me); + this.noteDeleteService.delete(await this.usersRepository.findOneByOrFail({ id: me.id }), note, false); } }); } diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 8fe76917f..fcc596b83 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -102,7 +102,7 @@ SPDX-License-Identifier: AGPL-3.0-only class="_button" :style="renoted ? 'color: var(--accent) !important;' : ''" v-on:click.stop - @mousedown="renoted ? undoRenote() : renote()" + @mousedown="renoted ? undoRenote(appearNote) : renote()" >

{{ appearNote.renoteCount }}

@@ -442,10 +442,10 @@ function undoReact(note): void { }); } -function undoRenote() : void { +function undoRenote(note) : void { if (!renoted.value) return; os.api("notes/unrenote", { - noteId: appearNote.id, + noteId: note.id, }); renoted.value = false; }