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/MkNote.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/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index e2f0a4e492..edae1e91b2 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -565,7 +565,8 @@ function quote() { os.post({ renote: appearNote.value, channel: appearNote.value.channel, - }).then(() => { + }).then((cancelled) => { + if (cancelled) return; misskeyApi('notes/renotes', { noteId: appearNote.value.id, userId: $i?.id, @@ -589,7 +590,8 @@ function quote() { } else { os.post({ renote: appearNote.value, - }).then(() => { + }).then((cancelled) => { + if (cancelled) return; misskeyApi('notes/renotes', { noteId: appearNote.value.id, userId: $i?.id, |