feat: add alsoKnownAs field to federation settings

This commit is contained in:
2026-05-28 02:01:56 +02:00
parent 2445cad1c9
commit 84c66dd461
3 changed files with 67 additions and 0 deletions

View File

@@ -487,3 +487,11 @@ export const unfollowRemoteActor = (handle: string, token: string) =>
z.null(),
token
);
export const setAlsoKnownAs = (value: string | null, token: string) =>
apiFetch(
"/federation/me/also-known-as",
{ method: "PATCH", body: JSON.stringify({ also_known_as: value || null }) },
z.null(),
token
);