diff options
| author | Marie <github@yuugi.dev> | 2024-09-16 00:35:26 +0200 |
|---|---|---|
| committer | Marie <github@yuugi.dev> | 2024-09-16 00:35:26 +0200 |
| commit | e21e2530e6067c1d5ba2b9f49c03333ef94367bc (patch) | |
| tree | a22af00916face20a12caf90e75e55a3542bab50 /packages/frontend/src/components/MkNoteSub.vue | |
| parent | upd: don't ignore new lines on file info (diff) | |
| download | sharkey-e21e2530e6067c1d5ba2b9f49c03333ef94367bc.tar.gz sharkey-e21e2530e6067c1d5ba2b9f49c03333ef94367bc.tar.bz2 sharkey-e21e2530e6067c1d5ba2b9f49c03333ef94367bc.zip | |
fix: don't show quoted toast on cancel of quote note
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNoteSub.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue index 9caed62ce2..45276839ad 100644 --- a/packages/frontend/src/components/MkNoteSub.vue +++ b/packages/frontend/src/components/MkNoteSub.vue @@ -339,7 +339,8 @@ function quote() { os.post({ renote: appearNote.value, channel: appearNote.value.channel, - }).then(() => { + }).then((cancelled) => { + if (cancelled) return; misskeyApi('notes/renotes', { noteId: props.note.id, userId: $i.id, @@ -363,7 +364,8 @@ function quote() { } else { os.post({ renote: appearNote.value, - }).then(() => { + }).then((cancelled) => { + if (cancelled) return; misskeyApi('notes/renotes', { noteId: props.note.id, userId: $i.id, |