Skip to content
Snippets Groups Projects
Commit 9f7c9b12 authored by syuilo's avatar syuilo
Browse files

fix(client): 非モデレーターがインスタンス情報ページを表示できない問題を修正

parent 9a419829
No related branches found
No related tags found
No related merge requests found
...@@ -134,16 +134,11 @@ let suspended = $ref(false); ...@@ -134,16 +134,11 @@ let suspended = $ref(false);
let isBlocked = $ref(false); let isBlocked = $ref(false);
async function fetch() { async function fetch() {
if (iAmModerator) { instance = await os.api('federation/show-instance', {
// suspended and blocked information is only displayed to moderators. host: props.host,
// otherwise the API will error anyway });
suspended = instance.isSuspended;
instance = await os.api('federation/show-instance', { isBlocked = instance.isBlocked;
host: props.host,
});
suspended = instance.isSuspended;
isBlocked = instance.isBlocked;
}
} }
async function toggleBlock(ev) { async function toggleBlock(ev) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment