mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fix some at-mentions not handled
This commit is contained in:
parent
861ad83423
commit
69c47489e3
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ function handleContentLinks(opts) {
|
|||
const textBeforeLinkIsAt = prevText?.endsWith('@');
|
||||
const textStartsWithAt = target.innerText.startsWith('@');
|
||||
if (
|
||||
(target.classList.contains('u-url') && textStartsWithAt) ||
|
||||
((target.classList.contains('u-url') ||
|
||||
target.classList.contains('mention')) &&
|
||||
textStartsWithAt) ||
|
||||
(textBeforeLinkIsAt && !textStartsWithAt)
|
||||
) {
|
||||
const targetText = (
|
||||
|
|
Loading…
Reference in a new issue