summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkMention.vue
diff options
context:
space:
mode:
authoranatawa12 <anatawa12@icloud.com>2024-04-27 21:24:39 +0900
committerGitHub <noreply@github.com>2024-04-27 21:24:39 +0900
commit8e8ee2ac73093b566d0b3905de884e660e67d614 (patch)
tree6d15999e223fe61dd8f9b4d71dd15b5e960d80f3 /packages/frontend/src/components/MkMention.vue
parentfix: ハイフンを含むリモート絵文字が描画されない (#13715) (diff)
downloadmisskey-8e8ee2ac73093b566d0b3905de884e660e67d614.tar.gz
misskey-8e8ee2ac73093b566d0b3905de884e660e67d614.tar.bz2
misskey-8e8ee2ac73093b566d0b3905de884e660e67d614.zip
open links in abuse comment in new window (#13381)
* feat: changing MkA behavior from MkMFM * chore: open links in abuse comment in new window * docs(changelog): 通報のコメント内のリンクをクリックした際、ウィンドウで開くように * chore: use inject instead of prop drilling * Revert "chore: use inject instead of prop drilling" This reverts commit b4dd14eacf59c8079676aa6ab019fece67496d79.
Diffstat (limited to 'packages/frontend/src/components/MkMention.vue')
-rw-r--r--packages/frontend/src/components/MkMention.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkMention.vue b/packages/frontend/src/components/MkMention.vue
index e6e8711f67..cbefecf03a 100644
--- a/packages/frontend/src/components/MkMention.vue
+++ b/packages/frontend/src/components/MkMention.vue
@@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
-<MkA v-user-preview="canonical" :class="[$style.root, { [$style.isMe]: isMe }]" :to="url" :style="{ background: bgCss }">
+<MkA v-user-preview="canonical" :class="[$style.root, { [$style.isMe]: isMe }]" :to="url" :style="{ background: bgCss }" :behavior="behavior">
<img :class="$style.icon" :src="avatarUrl" alt="">
<span>
<span>@{{ username }}</span>
@@ -21,10 +21,12 @@ import { host as localHost } from '@/config.js';
import { $i } from '@/account.js';
import { defaultStore } from '@/store.js';
import { getStaticImageUrl } from '@/scripts/media-proxy.js';
+import { MkABehavior } from '@/components/global/MkA.vue';
const props = defineProps<{
username: string;
host: string;
+ behavior?: MkABehavior;
}>();
const canonical = props.host === localHost ? `@${props.username}` : `@${props.username}@${toUnicode(props.host)}`;