diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-28 22:56:18 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-28 22:56:18 +0900 |
| commit | 9f7c9b122fcdf29da85ad7e8caa273a1a0efcc15 (patch) | |
| tree | 019ef2acec519b76f4fb21fc98d6b4e9e533649e /packages/client/src | |
| parent | chore(client): tweak style (diff) | |
| download | sharkey-9f7c9b122fcdf29da85ad7e8caa273a1a0efcc15.tar.gz sharkey-9f7c9b122fcdf29da85ad7e8caa273a1a0efcc15.tar.bz2 sharkey-9f7c9b122fcdf29da85ad7e8caa273a1a0efcc15.zip | |
fix(client): 非モデレーターがインスタンス情報ページを表示できない問題を修正
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/pages/instance-info.vue | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index 9eddbad79b..6d52f2a871 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -134,16 +134,11 @@ let suspended = $ref(false); let isBlocked = $ref(false); async function fetch() { - if (iAmModerator) { - // suspended and blocked information is only displayed to moderators. - // otherwise the API will error anyway - - instance = await os.api('federation/show-instance', { - host: props.host, - }); - suspended = instance.isSuspended; - isBlocked = instance.isBlocked; - } + instance = await os.api('federation/show-instance', { + host: props.host, + }); + suspended = instance.isSuspended; + isBlocked = instance.isBlocked; } async function toggleBlock(ev) { |