From 4b016c908dda2019f3bf89e5a3d2eae535e5fbd2 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Thu, 18 Sep 2025 00:24:39 +0700
Subject: oioi

---
 front/src/pages/Feed.tsx | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'front/src/pages/Feed.tsx')

diff --git a/front/src/pages/Feed.tsx b/front/src/pages/Feed.tsx
index 5902162..66acc66 100644
--- a/front/src/pages/Feed.tsx
+++ b/front/src/pages/Feed.tsx
@@ -1,7 +1,7 @@
 // import spinner from "@/assets/icons/spinner.svg";
 import "@/styles/trill.css";
 import "@/styles/feed.css";
-import UserFeed from "./User";
+import UserLoader from "./User";
 import PostList from "@/components/feed/PostList";
 import useLocalState from "@/state/state";
 import { useParams } from "wouter";
@@ -10,10 +10,8 @@ import { useState } from "react";
 import Composer from "@/components/composer/Composer";
 import Icon from "@/components/Icon";
 import toast from "react-hot-toast";
-// import UserFeed from "./User";
-import { P404 } from "@/Router";
-import { isValidPatp } from "urbit-ob";
 import { eventsToFc } from "@/logic/nostrill";
+import { ErrorPage } from "@/Router";
 
 type FeedType = "global" | "following" | "nostr";
 function Loader() {
@@ -27,8 +25,8 @@ function Loader() {
   if (params.taip === "nostr") return <FeedPage t={"nostr"} />;
   // else if (param === FeedType.Rumors) return <Rumors />;
   // else if (param === FeedType.Home) return <UserFeed p={our} />;
-  else if (isValidPatp(params.taip!)) return <UserFeed p={params.taip!} />;
-  else return <P404 />;
+  else if (params.taip) return <UserLoader userString={params.taip!} />;
+  else return <ErrorPage msg="No such page" />;
 }
 function FeedPage({ t }: { t: FeedType }) {
   const [active, setActive] = useState<FeedType>(t);
-- 
cgit v1.2.3

