diff --git a/packages/backend/src/server/api/endpoints/ap/get.ts b/packages/backend/src/server/api/endpoints/ap/get.ts index f0db67a34..bf3ad09d8 100644 --- a/packages/backend/src/server/api/endpoints/ap/get.ts +++ b/packages/backend/src/server/api/endpoints/ap/get.ts @@ -6,6 +6,7 @@ export const meta = { tags: ["federation"], requireCredential: true, + requireAdmin: true, limit: { duration: HOUR, diff --git a/packages/client/src/pages/user-info.vue b/packages/client/src/pages/user-info.vue index 2d9e67ff6..714fecfec 100644 --- a/packages/client/src/pages/user-info.vue +++ b/packages/client/src/pages/user-info.vue @@ -169,7 +169,7 @@ {{ i18n.ts.updateRemoteUser }} - + @@ -577,13 +577,15 @@ watch( }, ); -watch($$(user), () => { - os.api("ap/get", { - uri: user.uri ?? `${url}/users/${user.id}`, - }).then((res) => { - ap = res; +if (iAmAdmin) { + watch($$(user), () => { + os.api("ap/get", { + uri: user.uri ?? `${url}/users/${user.id}`, + }).then((res) => { + ap = res; + }); }); -}); +} const headerActions = $computed(() => []);