mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
fix(client): moderators cannot view instance-info page
This commit is contained in:
parent
ede5c804a7
commit
9634483ee2
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue