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(
|
const muted = ref(
|
||||||
getWordSoftMute(
|
getWordSoftMute(
|
||||||
note.value,
|
note.value,
|
||||||
$i.id,
|
$i?.id,
|
||||||
defaultStore.state.mutedWords,
|
defaultStore.state.mutedWords,
|
||||||
defaultStore.state.mutedLangs,
|
defaultStore.state.mutedLangs,
|
||||||
),
|
),
|
||||||
|
@ -235,7 +235,7 @@ const isDeleted = ref(false);
|
|||||||
const muted = ref(
|
const muted = ref(
|
||||||
getWordSoftMute(
|
getWordSoftMute(
|
||||||
note.value,
|
note.value,
|
||||||
$i.id,
|
$i?.id,
|
||||||
defaultStore.state.mutedWords,
|
defaultStore.state.mutedWords,
|
||||||
defaultStore.state.mutedLangs,
|
defaultStore.state.mutedLangs,
|
||||||
),
|
),
|
||||||
|
@ -268,7 +268,7 @@ const isDeleted = ref(false);
|
|||||||
const muted = ref(
|
const muted = ref(
|
||||||
getWordSoftMute(
|
getWordSoftMute(
|
||||||
note.value,
|
note.value,
|
||||||
$i.id,
|
$i?.id,
|
||||||
defaultStore.state.mutedWords,
|
defaultStore.state.mutedWords,
|
||||||
defaultStore.state.mutedLangs,
|
defaultStore.state.mutedLangs,
|
||||||
),
|
),
|
||||||
|
@ -79,7 +79,7 @@ export function getWordSoftMute(
|
|||||||
mutedWords: Array<string | string[]>,
|
mutedWords: Array<string | string[]>,
|
||||||
mutedLangs: Array<string | string[]>,
|
mutedLangs: Array<string | string[]>,
|
||||||
): Muted {
|
): Muted {
|
||||||
if (note.userId === meId) return NotMuted;
|
if (meId == null || note.userId === meId) return NotMuted;
|
||||||
|
|
||||||
if (mutedWords.length > 0) {
|
if (mutedWords.length > 0) {
|
||||||
const noteMuted = checkWordMute(note, mutedWords);
|
const noteMuted = checkWordMute(note, mutedWords);
|
||||||
|
Loading…
Reference in New Issue
Block a user