From c8c430fe7f19d4de208790eb59cdb23865c97ea7 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 14 May 2026 17:39:20 +0200 Subject: [PATCH] fix: getUserProfile calls /users/{username}/profile to avoid AP route conflict --- thoughts-frontend/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thoughts-frontend/lib/api.ts b/thoughts-frontend/lib/api.ts index 39cdc36..544d085 100644 --- a/thoughts-frontend/lib/api.ts +++ b/thoughts-frontend/lib/api.ts @@ -187,7 +187,7 @@ export const getMeFollowingList = (token: string) => // ── Users ───────────────────────────────────────────────────────────────── export const getUserProfile = (username: string, token: string | null) => - apiFetch(`/users/${username}`, {}, UserSchema, token); + apiFetch(`/users/${username}/profile`, {}, UserSchema, token); export const getFollowersList = (username: string, token: string | null) => apiFetch(`/users/${username}/follower-list`, {}, z.object({ total: z.number(), items: z.array(UserSchema) }), token);