fix: properly bypass word mute check if signed out
This commit is contained in:
parent
0b8b4ea48d
commit
fd3d788aad
@ -359,7 +359,7 @@ const isDeleted = ref(false);
|
||||
const muted = ref(
|
||||
getWordSoftMute(
|
||||
note.value,
|
||||
$i.id,
|
||||
$i?.id,
|
||||
defaultStore.state.mutedWords,
|
||||
defaultStore.state.mutedLangs,
|
||||
),
|
||||
|
@ -235,7 +235,7 @@ const isDeleted = ref(false);
|
||||
const muted = ref(
|
||||
getWordSoftMute(
|
||||
note.value,
|
||||
$i.id,
|
||||
$i?.id,
|
||||
defaultStore.state.mutedWords,
|
||||
defaultStore.state.mutedLangs,
|
||||
),
|
||||
|
@ -268,7 +268,7 @@ const isDeleted = ref(false);
|
||||
const muted = ref(
|
||||
getWordSoftMute(
|
||||
note.value,
|
||||
$i.id,
|
||||
$i?.id,
|
||||
defaultStore.state.mutedWords,
|
||||
defaultStore.state.mutedLangs,
|
||||
),
|
||||
|
@ -79,7 +79,7 @@ export function getWordSoftMute(
|
||||
mutedWords: Array<string | string[]>,
|
||||
mutedLangs: Array<string | string[]>,
|
||||
): Muted {
|
||||
if (note.userId === meId) return NotMuted;
|
||||
if (meId == null || note.userId === meId) return NotMuted;
|
||||
|
||||
if (mutedWords.length > 0) {
|
||||
const noteMuted = checkWordMute(note, mutedWords);
|
||||
|
Loading…
Reference in New Issue
Block a user