Fix dirty duplicated code
This commit is contained in:
parent
1baf760c4c
commit
d1ab75beed
3 changed files with 9 additions and 57 deletions
|
@ -201,27 +201,11 @@
|
||||||
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
||||||
<template #name>
|
<template #name>
|
||||||
<MkA
|
<MkA
|
||||||
v-user-preview="
|
v-user-preview="note.userId"
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.userId
|
|
||||||
: appearNote.userId
|
|
||||||
"
|
|
||||||
class="name"
|
class="name"
|
||||||
:to="
|
:to="userPage(note.user)"
|
||||||
userPage(
|
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.user
|
|
||||||
: appearNote.user
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<MkUserName
|
<MkUserName :user="note.user" />
|
||||||
:user="
|
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.user
|
|
||||||
: appearNote.user
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</MkA>
|
</MkA>
|
||||||
</template>
|
</template>
|
||||||
<template #reason>
|
<template #reason>
|
||||||
|
|
|
@ -42,27 +42,11 @@
|
||||||
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
||||||
<template #name>
|
<template #name>
|
||||||
<MkA
|
<MkA
|
||||||
v-user-preview="
|
v-user-preview="note.userId"
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.userId
|
|
||||||
: appearNote.userId
|
|
||||||
"
|
|
||||||
class="name"
|
class="name"
|
||||||
:to="
|
:to="userPage(note.user)"
|
||||||
userPage(
|
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.user
|
|
||||||
: appearNote.user
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<MkUserName
|
<MkUserName :user="note.user" />
|
||||||
:user="
|
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.user
|
|
||||||
: appearNote.user
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</MkA>
|
</MkA>
|
||||||
</template>
|
</template>
|
||||||
<template #reason>
|
<template #reason>
|
||||||
|
|
|
@ -166,27 +166,11 @@
|
||||||
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
||||||
<template #name>
|
<template #name>
|
||||||
<MkA
|
<MkA
|
||||||
v-user-preview="
|
v-user-preview="note.userId"
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.userId
|
|
||||||
: appearNote.userId
|
|
||||||
"
|
|
||||||
class="name"
|
class="name"
|
||||||
:to="
|
:to="userPage(note.user)"
|
||||||
userPage(
|
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.user
|
|
||||||
: appearNote.user
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<MkUserName
|
<MkUserName :user="note.user" />
|
||||||
:user="
|
|
||||||
['renote', 'quote'].includes(muted.what)
|
|
||||||
? note.user
|
|
||||||
: appearNote.user
|
|
||||||
"
|
|
||||||
/>
|
|
||||||
</MkA>
|
</MkA>
|
||||||
</template>
|
</template>
|
||||||
<template #reason>
|
<template #reason>
|
||||||
|
|
Loading…
Reference in a new issue