From 30704020b0eae47fab4845ab0edef5e2d9c24df2 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 1 Oct 2025 00:57:19 +0000 Subject: [PATCH] Remove placeholder content in feed cgen-e181e9a2c78747e8b84853b040240bc1 --- client/pages/Feed.tsx | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/client/pages/Feed.tsx b/client/pages/Feed.tsx index f8ad4537..cf5ead7c 100644 --- a/client/pages/Feed.tsx +++ b/client/pages/Feed.tsx @@ -89,31 +89,8 @@ export default function Feed() { comments: p.comments_count ?? 0, }; }); - // If no posts yet, fall back to recommended people as placeholders - if (mapped.length === 0) { - const recs = await aethexSocialService.listRecommended( - user?.id || "guest", - 12, - ); - const placeholders: FeedItem[] = recs.map((r: any) => ({ - id: r.id, - authorId: r.id, - authorName: r.full_name || r.username || "User", - authorAvatar: r.avatar_url, - caption: r.bio || "", - mediaUrl: r.banner_url || r.avatar_url || null, - mediaType: r.banner_url?.match(/\.(mp4|webm|mov)(\?.*)?$/i) - ? "video" - : r.banner_url || r.avatar_url - ? "image" - : "none", - likes: Math.floor(Math.random() * 200) + 5, - comments: Math.floor(Math.random() * 30), - })); - setItems(placeholders); - } else { - setItems(mapped); - } + + setItems(mapped); } finally { setIsLoading(false); }