summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2018-12-12 11:47:07 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-12-12 11:47:07 +0900
commit79ff5888fd88c0c8f4b2214789c0252d83fbde62 (patch)
tree4d534ffec323ad19a03d736b4f203edfb81f5562 /src
parent Fix URL after deleting remote file (#3597) (diff)
downloadmisskey-79ff5888fd88c0c8f4b2214789c0252d83fbde62.tar.gz
misskey-79ff5888fd88c0c8f4b2214789c0252d83fbde62.tar.bz2
misskey-79ff5888fd88c0c8f4b2214789c0252d83fbde62.zip
Fix htmlToMfm (#3600)
Diffstat (limited to 'src')
-rw-r--r--src/mfm/html-to-mfm.ts2
1 files changed, 1 insertions, 1 deletions
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) {