diff --git a/components/status/StatusLink.vue b/components/status/StatusLink.vue index 88d5a47d..302d2348 100644 --- a/components/status/StatusLink.vue +++ b/components/status/StatusLink.vue @@ -14,7 +14,8 @@ function onclick(evt: MouseEvent | KeyboardEvent) { const path = evt.composedPath() as HTMLElement[] const el = path.find(el => ['A', 'BUTTON', 'IMG', 'VIDEO'].includes(el.tagName?.toUpperCase())) const text = window.getSelection()?.toString() - if (!el && !text) + const isCustomEmoji = el?.parentElement?.classList.contains('custom-emoji') + if ((!el && !text) || isCustomEmoji) go(evt) }