diff --git a/src/lib/api/accounts.ts b/src/lib/api/accounts.ts index 4fbe6c87a..58ac435ee 100644 --- a/src/lib/api/accounts.ts +++ b/src/lib/api/accounts.ts @@ -6,6 +6,7 @@ type Fetch = typeof globalThis.fetch; /** Get the logged-in user */ export async function getMe(fetch: Fetch): Promise<Maybe<User>> { const endpoint = new URL("users/me/", BASE_API_URL); + endpoint.searchParams.set("expand", "organization"); try { const resp = await fetch(endpoint, { credentials: "include" }); if (!resp.ok) return;