From 74d84cb2f22600b6246343e9ea606cf0db7517f0 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Wed, 19 Nov 2025 05:47:30 +0700
Subject: Big GUI improvements on Nostr rendering and fetching

---
 gui/src/Router.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'gui/src/Router.tsx')

diff --git a/gui/src/Router.tsx b/gui/src/Router.tsx
index 5026ef0..5566524 100644
--- a/gui/src/Router.tsx
+++ b/gui/src/Router.tsx
@@ -3,7 +3,7 @@ import useLocalState from "@/state/state";
 import Feed from "@/pages/Feed";
 import User from "@/pages/User";
 import Settings from "@/pages/Settings";
-import Thread from "@/pages/Thread";
+import Thread, { NostrThreadLoader } from "@/pages/Thread";
 import { Switch, Router, Redirect, Route } from "wouter";
 import { P404 } from "./pages/Error";
 
@@ -14,12 +14,13 @@ export default function r() {
       <Router base="/apps/nostrill">
         <Sidebar />
         <main>
-          <Route path="/" component={toGlobal} />
+          <Route path="/" component={toMain} />
           <Route path="/sets" component={Settings} />
           <Route path="/f" component={Feed} />
           <Route path="/f/:taip" component={Feed} />
           <Route path="/u/:user" component={User} />
           <Route path="/t/:host/:id" component={Thread} />
+          <Route path="/t/:id" component={NostrThreadLoader} />
         </main>
         {modal && modal}
       </Router>
@@ -27,6 +28,6 @@ export default function r() {
     </Switch>
   );
 }
-function toGlobal() {
+function toMain() {
   return <Redirect to="/f" />;
 }
-- 
cgit v1.2.3

