fix: only fetch admin/meta if admin

This commit is contained in:
ThatOneCalculator 2023-05-07 18:41:31 -07:00
parent 5d88fc4555
commit da61357f2d
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -398,7 +398,7 @@ const usersPagination = {
}; };
async function fetch() { 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", { instance = (await os.api("federation/show-instance", {
host: props.host, host: props.host,
})) as AugmentedInstance; })) as AugmentedInstance;