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

fix(client): moderators cannot view instance-info page

parent 2d181ba5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
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