diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-10-15 18:03:27 +0200 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-10-15 18:03:27 +0200 |
| commit | 48c7eeb57eb013c88515ca4176c426e33278c345 (patch) | |
| tree | ffee37ecfc4d8996f29d3ef858f45393c8d46308 /packages/frontend/src/components/MkNoteSub.vue | |
| parent | upd: add locale for quoted, add toasts and effects (diff) | |
| download | sharkey-48c7eeb57eb013c88515ca4176c426e33278c345.tar.gz sharkey-48c7eeb57eb013c88515ca4176c426e33278c345.tar.bz2 sharkey-48c7eeb57eb013c88515ca4176c426e33278c345.zip | |
fix: prevent quoted toast to be triggered when not quoted
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNoteSub.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue index a701766c25..9976892355 100644 --- a/packages/frontend/src/components/MkNoteSub.vue +++ b/packages/frontend/src/components/MkNoteSub.vue @@ -326,6 +326,7 @@ function quote() { limit: 1, quote: true, }).then((res) => { + if (!(res.length > 0)) return; const el = quoteButton.value as HTMLElement | null | undefined; if (el && res.length > 0) { const rect = el.getBoundingClientRect(); @@ -348,6 +349,7 @@ function quote() { limit: 1, quote: true, }).then((res) => { + if (!(res.length > 0)) return; const el = quoteButton.value as HTMLElement | null | undefined; if (el && res.length > 0) { const rect = el.getBoundingClientRect(); |