mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-01 14:27:33 -07:00
Show the correct username
This commit is contained in:
parent
4124f00a34
commit
ea95a9358e
3 changed files with 60 additions and 18 deletions
|
@ -201,11 +201,27 @@
|
||||||
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
||||||
<template #name>
|
<template #name>
|
||||||
<MkA
|
<MkA
|
||||||
v-user-preview="appearNote.userId"
|
v-user-preview="
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.userId
|
||||||
|
: appearNote.userId
|
||||||
|
"
|
||||||
class="name"
|
class="name"
|
||||||
:to="userPage(appearNote.user)"
|
:to="
|
||||||
|
userPage(
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.user
|
||||||
|
: appearNote.user
|
||||||
|
)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<MkUserName :user="appearNote.user" />
|
<MkUserName
|
||||||
|
:user="
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.user
|
||||||
|
: appearNote.user
|
||||||
|
"
|
||||||
|
/>
|
||||||
</MkA>
|
</MkA>
|
||||||
</template>
|
</template>
|
||||||
<template #reason>
|
<template #reason>
|
||||||
|
@ -301,9 +317,7 @@ let appearNote = $computed(() =>
|
||||||
const isMyRenote = $i && $i.id === note.userId;
|
const isMyRenote = $i && $i.id === note.userId;
|
||||||
const showContent = ref(false);
|
const showContent = ref(false);
|
||||||
const isDeleted = ref(false);
|
const isDeleted = ref(false);
|
||||||
const muted = ref(
|
const muted = ref(getWordSoftMute(note, $i, defaultStore.state.mutedWords));
|
||||||
getWordSoftMute(appearNote, $i, defaultStore.state.mutedWords)
|
|
||||||
);
|
|
||||||
const translation = ref(null);
|
const translation = ref(null);
|
||||||
const translating = ref(false);
|
const translating = ref(false);
|
||||||
const enableEmojiReactions = defaultStore.state.enableEmojiReactions;
|
const enableEmojiReactions = defaultStore.state.enableEmojiReactions;
|
||||||
|
|
|
@ -42,11 +42,27 @@
|
||||||
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
||||||
<template #name>
|
<template #name>
|
||||||
<MkA
|
<MkA
|
||||||
v-user-preview="appearNote.userId"
|
v-user-preview="
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.userId
|
||||||
|
: appearNote.userId
|
||||||
|
"
|
||||||
class="name"
|
class="name"
|
||||||
:to="userPage(appearNote.user)"
|
:to="
|
||||||
|
userPage(
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.user
|
||||||
|
: appearNote.user
|
||||||
|
)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<MkUserName :user="appearNote.user" />
|
<MkUserName
|
||||||
|
:user="
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.user
|
||||||
|
: appearNote.user
|
||||||
|
"
|
||||||
|
/>
|
||||||
</MkA>
|
</MkA>
|
||||||
</template>
|
</template>
|
||||||
<template #reason>
|
<template #reason>
|
||||||
|
@ -152,9 +168,7 @@ let appearNote = $computed(() =>
|
||||||
const isMyRenote = $i && $i.id === note.userId;
|
const isMyRenote = $i && $i.id === note.userId;
|
||||||
const showContent = ref(false);
|
const showContent = ref(false);
|
||||||
const isDeleted = ref(false);
|
const isDeleted = ref(false);
|
||||||
const muted = ref(
|
const muted = ref(getWordSoftMute(note, $i, defaultStore.state.mutedWords));
|
||||||
getWordSoftMute(appearNote, $i, defaultStore.state.mutedWords)
|
|
||||||
);
|
|
||||||
const translation = ref(null);
|
const translation = ref(null);
|
||||||
const translating = ref(false);
|
const translating = ref(false);
|
||||||
const urls = appearNote.text
|
const urls = appearNote.text
|
||||||
|
|
|
@ -166,11 +166,27 @@
|
||||||
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
<I18n :src="softMuteReasonI18nSrc(muted.what)" tag="small">
|
||||||
<template #name>
|
<template #name>
|
||||||
<MkA
|
<MkA
|
||||||
v-user-preview="appearNote.userId"
|
v-user-preview="
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.userId
|
||||||
|
: appearNote.userId
|
||||||
|
"
|
||||||
class="name"
|
class="name"
|
||||||
:to="userPage(appearNote.user)"
|
:to="
|
||||||
|
userPage(
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.user
|
||||||
|
: appearNote.user
|
||||||
|
)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<MkUserName :user="appearNote.user" />
|
<MkUserName
|
||||||
|
:user="
|
||||||
|
['renote', 'quote'].includes(muted.what)
|
||||||
|
? note.user
|
||||||
|
: appearNote.user
|
||||||
|
"
|
||||||
|
/>
|
||||||
</MkA>
|
</MkA>
|
||||||
</template>
|
</template>
|
||||||
<template #reason>
|
<template #reason>
|
||||||
|
@ -252,9 +268,7 @@ let appearNote = $computed(() =>
|
||||||
isRenote ? (note.renote as misskey.entities.Note) : note
|
isRenote ? (note.renote as misskey.entities.Note) : note
|
||||||
);
|
);
|
||||||
const isDeleted = ref(false);
|
const isDeleted = ref(false);
|
||||||
const muted = ref(
|
const muted = ref(getWordSoftMute(note, $i, defaultStore.state.mutedWords));
|
||||||
getWordSoftMute(appearNote, $i, defaultStore.state.mutedWords)
|
|
||||||
);
|
|
||||||
const translation = ref(null);
|
const translation = ref(null);
|
||||||
const translating = ref(false);
|
const translating = ref(false);
|
||||||
const replies: misskey.entities.Note[] =
|
const replies: misskey.entities.Note[] =
|
||||||
|
|
Loading…
Reference in a new issue