summaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-06-28 22:56:18 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-06-28 22:56:18 +0900
commit9f7c9b122fcdf29da85ad7e8caa273a1a0efcc15 (patch)
tree019ef2acec519b76f4fb21fc98d6b4e9e533649e /packages/client/src
parentchore(client): tweak style (diff)
downloadsharkey-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.vue15
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) {