feat: add alsoKnownAs field to federation settings
Some checks failed
lint / lint (push) Failing after 7m10s
test / unit (push) Successful in 16m28s
test / integration (push) Failing after 17m52s

This commit is contained in:
2026-05-28 02:01:56 +02:00
parent 1ad02e0806
commit c30243f1c8
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
);