Fix dirty duplicated code

This commit is contained in:
naskya 2023-05-05 10:38:56 +09:00
parent 1baf760c4c
commit d1ab75beed
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139
3 changed files with 9 additions and 57 deletions

View File

@ -201,27 +201,11 @@
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
<template #name>
<MkA
v-user-preview="
['renote', 'quote'].includes(muted.what)
? note.userId
: appearNote.userId
"
v-user-preview="note.userId"
class="name"
:to="
userPage(
['renote', 'quote'].includes(muted.what)
? note.user
: appearNote.user
)
"
:to="userPage(note.user)"
>
<MkUserName
:user="
['renote', 'quote'].includes(muted.what)
? note.user
: appearNote.user
"
/>
<MkUserName :user="note.user" />
</MkA>
</template>
<template #reason>

View File

@ -42,27 +42,11 @@
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
<template #name>
<MkA
v-user-preview="
['renote', 'quote'].includes(muted.what)
? note.userId
: appearNote.userId
"
v-user-preview="note.userId"
class="name"
:to="
userPage(
['renote', 'quote'].includes(muted.what)
? note.user
: appearNote.user
)
"
:to="userPage(note.user)"
>
<MkUserName
:user="
['renote', 'quote'].includes(muted.what)
? note.user
: appearNote.user
"
/>
<MkUserName :user="note.user" />
</MkA>
</template>
<template #reason>

View File

@ -166,27 +166,11 @@
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
<template #name>
<MkA
v-user-preview="
['renote', 'quote'].includes(muted.what)
? note.userId
: appearNote.userId
"
v-user-preview="note.userId"
class="name"
:to="
userPage(
['renote', 'quote'].includes(muted.what)
? note.user
: appearNote.user
)
"
:to="userPage(note.user)"
>
<MkUserName
:user="
['renote', 'quote'].includes(muted.what)
? note.user
: appearNote.user
"
/>
<MkUserName :user="note.user" />
</MkA>
</template>
<template #reason>