TootBottomSheet: moved to /:acct/toot/:id

This commit is contained in:
thislight 2024-10-17 20:39:04 +08:00
parent 5b72160cdb
commit b5da86fa5c
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ const Routing: Component = () => {
<Route path="/region" component={RegionSettings}></Route> <Route path="/region" component={RegionSettings}></Route>
<Route path="/motions" component={MotionSettings}></Route> <Route path="/motions" component={MotionSettings}></Route>
</Route> </Route>
<Route path="/:acct/:id" component={TootBottomSheet}></Route> <Route path="/:acct/toot/:id" component={TootBottomSheet}></Route>
</Route> </Route>
<Route path={"/accounts"}> <Route path={"/accounts"}>
<Route path={"/sign-in"} component={AccountSignIn} /> <Route path={"/sign-in"} component={AccountSignIn} />

View file

@ -151,7 +151,7 @@ const Home: ParentComponent = (props) => {
); );
const acct = `${inf.username}@${p.account.site}`; const acct = `${inf.username}@${p.account.site}`;
setTootBottomSheetCache(acct, toot); setTootBottomSheetCache(acct, toot);
navigate(`/${encodeURIComponent(acct)}/${toot.id}`, { navigate(`/${encodeURIComponent(acct)}/toot/${toot.id}`, {
state: reply state: reply
? { ? {
tootReply: true, tootReply: true,