diff --git a/src/app/discover/actions.ts b/src/app/discover/actions.ts index 57fd77a..34e2c5f 100644 --- a/src/app/discover/actions.ts +++ b/src/app/discover/actions.ts @@ -233,9 +233,12 @@ export async function getDiscoverData(sort: DiscoverSortOption): Promise r.created_by))]; const { data: profiles, error: profilesError } = await supabase .from("profiles") - .select("id,username"); + .select("id,username") + .in("id", creatorIds); if (profilesError) throw profilesError; const usernameById = new Map();