mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-18 08:38:45 +09:00
fix(client): moderators cannot view instance-info page
This commit is contained in:
parent
2d181ba5af
commit
c9d4c00708
@ -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 New Issue
Block a user