server: add missing paren

How did this not break yet?
This commit is contained in:
Johann150 2022-12-07 18:28:47 +01:00
parent 0f3f42eb39
commit 18664dbca3
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -72,7 +72,7 @@ export function fromHtml(html: string, quoteUri?: string | null): string {
const href = getAttr(node, 'href');
// hashtags
if (txt.startsWith('#') && href && (attrHas(node, 'rel', 'tag') || attrHas(node, 'class', 'hashtag')) {
if (txt.startsWith('#') && href && (attrHas(node, 'rel', 'tag') || attrHas(node, 'class', 'hashtag'))) {
text += txt;
// mentions
} else if (txt.startsWith('@') && !attrHas(node, 'rel', 'me')) {