From 605c22b55e9cead59e780de58f3fb5673c961f29 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Sun, 6 Oct 2024 10:58:27 -0400 Subject: [PATCH] add lockout for isMediaSilenced --- packages/frontend/src/pages/instance-info.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue index 1a90abba12..929c22d114 100644 --- a/packages/frontend/src/pages/instance-info.vue +++ b/packages/frontend/src/pages/instance-info.vue @@ -50,7 +50,8 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.silencedByBase }} {{ i18n.ts.silenceThisInstance }} Mark as NSFW - {{ i18n.ts.mediaSilenceThisInstance }} + {{ i18n.ts.mediaSilencedByBase }} + {{ i18n.ts.mediaSilenceThisInstance }} Refresh metadata @@ -190,6 +191,7 @@ const baseDomains = computed(() => { }); const isBaseBlocked = computed(() => meta.value && baseDomains.value.some(d => meta.value?.blockedHosts.includes(d))); const isBaseSilenced = computed(() => meta.value && meta.value.silencedHosts && baseDomains.value.some(d => meta.value?.silencedHosts?.includes(d))); +const isBaseMediaSilenced = computed(() => meta.value && meta.value.mediaSilencedHosts && baseDomains.value.some(d => meta.value?.mediaSilencedHosts.includes(d))); const usersPagination = { endpoint: iAmModerator ? 'admin/show-users' : 'users' as const,