upd: change unrenote function
This commit is contained in:
parent
b4c81eb4ef
commit
96d99f04fb
|
@ -66,7 +66,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // 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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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()"
|
||||
>
|
||||
<i class="ph-rocket-launch ph-bold ph-lg"></i>
|
||||
<p v-if="appearNote.renoteCount > 0" :class="$style.footerButtonCount">{{ appearNote.renoteCount }}</p>
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue