From 9634483ee27892d0c93e3f7e2e917fed8232e0b5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 21 Jun 2022 23:22:18 +0900 Subject: [PATCH] fix(client): moderators cannot view instance-info page --- packages/client/src/pages/instance-info.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index 11e361857..afee31b44 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -141,12 +141,11 @@ async function fetch() { // suspended and blocked information is only displayed to moderators. // otherwise the API will error anyway - meta = await os.api('admin/meta', { detail: true }); instance = await os.api('federation/show-instance', { host: props.host, }); suspended = instance.isSuspended; - isBlocked = meta.blockedHosts.includes(instance.host); + isBlocked = instance.isBlocked; } }