mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 23:08:12 +09:00
Fix dirty duplicated code
This commit is contained in:
parent
6143af2be9
commit
433b492a2b
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user