diff --git a/src/mfm/html-to-mfm.ts b/src/mfm/html-to-mfm.ts index dcd0e7fa7e..1441f97d94 100644 --- a/src/mfm/html-to-mfm.ts +++ b/src/mfm/html-to-mfm.ts @@ -43,7 +43,7 @@ export default function(html: string): string { if ((rel && rel.value.match('tag') !== null) || !href || href.value == txt) { text += txt; // メンション - } else if (txt.startsWith('@') && !rel || !rel.value.match(/^me /)) { + } else if (txt.startsWith('@') && !(rel && rel.value.match(/^me /))) { const part = txt.split('@'); if (part.length == 2) {