fix: only fetch admin/meta if admin
This commit is contained in:
parent
40f14c9c0a
commit
3dce8786ef
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ const usersPagination = {
|
|||
};
|
||||
|
||||
async function fetch() {
|
||||
meta = (await os.api("admin/meta")) as AugmentedInstanceMetadata;
|
||||
if (iAmAdmin) meta = (await os.api("admin/meta")) as AugmentedInstanceMetadata;
|
||||
instance = (await os.api("federation/show-instance", {
|
||||
host: props.host,
|
||||
})) as AugmentedInstance;
|
||||
|
|
Loading…
Reference in a new issue