mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-13 03:26:21 +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 textBeforeLinkIsAt = prevText?.endsWith('@');
|
||||||
const textStartsWithAt = target.innerText.startsWith('@');
|
const textStartsWithAt = target.innerText.startsWith('@');
|
||||||
if (
|
if (
|
||||||
(target.classList.contains('u-url') && textStartsWithAt) ||
|
((target.classList.contains('u-url') ||
|
||||||
|
target.classList.contains('mention')) &&
|
||||||
|
textStartsWithAt) ||
|
||||||
(textBeforeLinkIsAt && !textStartsWithAt)
|
(textBeforeLinkIsAt && !textStartsWithAt)
|
||||||
) {
|
) {
|
||||||
const targetText = (
|
const targetText = (
|
||||||
|
|
Loading…
Reference in a new issue