From bb28c026e9b183f15b4e8771e7229d71052483d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 26 May 2019 00:38:26 +0900 Subject: [PATCH] Fix #4981 --- src/client/app/common/views/components/mfm.ts | 5 +---- src/client/app/common/views/components/url.vue | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/client/app/common/views/components/mfm.ts b/src/client/app/common/views/components/mfm.ts index 7de29b2aa..fa798504c 100644 --- a/src/client/app/common/views/components/mfm.ts +++ b/src/client/app/common/views/components/mfm.ts @@ -8,7 +8,7 @@ import { concat, sum } from '../../../../../prelude/array'; import MkFormula from './formula.vue'; import MkCode from './code.vue'; import MkGoogle from './google.vue'; -import { host, url } from '../../../config'; +import { host } from '../../../config'; import { preorderF, countNodesF } from '../../../../../prelude/tree'; function sumTextsLength(ts: MfmForest): number { @@ -175,9 +175,6 @@ export default Vue.component('misskey-flavored-markdown', { props: { url: token.node.props.url, rel: 'nofollow noopener', - ...(token.node.props.url.startsWith(url) ? {} : { - target: '_blank' - }) }, attrs: { style: 'color:var(--mfmUrl);' diff --git a/src/client/app/common/views/components/url.vue b/src/client/app/common/views/components/url.vue index 2829812f9..078c81652 100644 --- a/src/client/app/common/views/components/url.vue +++ b/src/client/app/common/views/components/url.vue @@ -1,5 +1,5 @@