fix (client): soft muted posts not opening on click

This commit is contained in:
naskya 2024-05-22 17:55:50 +09:00
parent c6badcc11d
commit b087817984
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -449,6 +449,14 @@ const translation = ref<NoteTranslation | null>(null);
const translating = ref(false);
const isDeleted = ref(false);
const renotes = ref(props.renotes?.filter((rn) => !_isDeleted(rn.id)));
const muted = ref(
getWordSoftMute(
note.value,
me?.id,
defaultStore.reactiveState.mutedWords.value,
defaultStore.reactiveState.mutedLangs.value,
),
);
// #endregion
// #region computed
@ -462,14 +470,6 @@ const appearNote = computed(() =>
const isMyNote = computed(
() => isSignedIn(me) && me.id === note.value.userId && props.renotes == null,
);
const muted = computed(() =>
getWordSoftMute(
note.value,
me?.id,
defaultStore.reactiveState.mutedWords.value,
defaultStore.reactiveState.mutedLangs.value,
),
);
const isForeignLanguage = computed(
() =>
defaultStore.state.detectPostLanguage &&