diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 266ba27d0..39bae9b73 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -13,7 +13,6 @@ SPDX-License-Identifier: AGPL-3.0-only :class="[$style.root, { [$style.showActionsOnlyHover]: defaultStore.state.showNoteActionsOnlyHover, [$style.skipRender]: defaultStore.state.skipNoteRender || defaultStore.state.enableRenderingOptimization }]" :tabindex="isDeleted ? '-1' : '0'" > -
+ +
@@ -328,16 +327,16 @@ const disableReactionsViewer = ref(defaultStore.reactiveState.disableReactionsVi const collapsedUnexpectedLangs = ref(defaultStore.reactiveState.collapsedUnexpectedLangs); const expectedLangs = computed(() => new Set([ - (miLocalStorage.getItem('lang') ?? navigator.language).slice(0, 2), - navigator.language.slice(0, 2) + (miLocalStorage.getItem('lang') ?? navigator.language).slice(0, 2), + navigator.language.slice(0, 2), ])); const noteLanguage = computed(() => { - if (!appearNote.value.text || appearNote.value.text.length < 10) return ''; - return detectLanguage(appearNote.value.text); + if (!appearNote.value.text || appearNote.value.text.length < 10) return ''; + return detectLanguage(appearNote.value.text); }); const isUnexpectedLanguage = computed(() => { - const lang = noteLanguage.value; - return lang !== '' && !expectedLangs.value.has(lang); + const lang = noteLanguage.value; + return lang !== '' && !expectedLangs.value.has(lang); }); const pleaseLoginContext = computed(() => ({