fix(frontend): tag getTopFriends fetch
This commit is contained in:
@@ -222,7 +222,12 @@ export const getFollowingList = (username: string, token: string | null) =>
|
|||||||
apiFetch(`/users/${username}/following`, {}, z.object({ total: z.number(), items: z.array(UserSchema) }), token);
|
apiFetch(`/users/${username}/following`, {}, z.object({ total: z.number(), items: z.array(UserSchema) }), token);
|
||||||
|
|
||||||
export const getTopFriends = (username: string, token: string | null) =>
|
export const getTopFriends = (username: string, token: string | null) =>
|
||||||
apiFetch(`/users/${username}/top-friends`, {}, z.object({ topFriends: z.array(z.string()) }), token);
|
apiFetch(
|
||||||
|
`/users/${username}/top-friends`,
|
||||||
|
{ next: { tags: [`profile:${username}`] } },
|
||||||
|
z.object({ topFriends: z.array(z.string()) }),
|
||||||
|
token
|
||||||
|
);
|
||||||
|
|
||||||
export const followUser = (username: string, token: string) =>
|
export const followUser = (username: string, token: string) =>
|
||||||
apiFetch(`/users/${username}/follow`, { method: "POST" }, z.null(), token);
|
apiFetch(`/users/${username}/follow`, { method: "POST" }, z.null(), token);
|
||||||
|
|||||||
Reference in New Issue
Block a user