this repo has no description
atproto bluesky typescript express

uh

Changed files
+10 -12
src
routes
views
+9 -10
src/routes/main.ts
··· 16 17 import { getReviews } from "../reviews.js"; 18 import { PUBLIC_URL } from "../env.js"; 19 - import auth from "../lib/auth.js"; 20 21 const router = Router(); 22 ··· 84 follows: follows, 85 usertheme: theme, 86 bg: bg, 87 - curuser: req.cookies.handle, 88 year: new Date().getFullYear(), 89 }); 90 }); ··· 102 follows: follows, 103 usertheme: theme, 104 bg: bg, 105 - curuser: req.cookies.handle, 106 year: new Date().getFullYear(), 107 }); 108 }, ··· 123 followers: followers, 124 usertheme: theme, 125 bg: bg, 126 - curuser: req.cookies.handle, 127 year: new Date().getFullYear(), 128 }); 129 }, ··· 142 post: post, 143 usertheme: theme, 144 bg: bg, 145 - curuser: req.cookies.handle, 146 year: new Date().getFullYear(), 147 }); 148 }); 149 150 router.get("/tw/search", async (req: Request, res: Response) => { 151 - const did = await getActorDid(agent, req.cookies.handle); 152 const { theme, bg } = await loadTheme(agent, did); 153 154 res.render("search_users", { ··· 156 title: "Bluesky / people search", 157 usertheme: theme, 158 bg: bg, 159 - curuser: req.cookies.handle, 160 year: new Date().getFullYear(), 161 }); 162 }); ··· 164 router.get("/tw/search/users", async (req: Request, res: Response) => { 165 const { q } = req.query; 166 const actors = await searchActors(pubagent, q as string); 167 - const did = await getActorDid(agent, req.cookies.handle); 168 const { theme, bg } = await loadTheme(agent, did); 169 170 res.render("results_users", { ··· 174 actor: actors, 175 usertheme: theme, 176 bg: bg, 177 - curuser: req.cookies.handle, 178 year: new Date().getFullYear(), 179 }); 180 }); ··· 192 cursor: feed.cursor, 193 feedData: feedData, 194 record: req.params.record, 195 - curuser: req.cookies.handle, 196 year: new Date().getFullYear(), 197 }); 198 },
··· 16 17 import { getReviews } from "../reviews.js"; 18 import { PUBLIC_URL } from "../env.js"; 19 20 const router = Router(); 21 ··· 83 follows: follows, 84 usertheme: theme, 85 bg: bg, 86 + curuser: req.session.handle, 87 year: new Date().getFullYear(), 88 }); 89 }); ··· 101 follows: follows, 102 usertheme: theme, 103 bg: bg, 104 + curuser: req.session.handle, 105 year: new Date().getFullYear(), 106 }); 107 }, ··· 122 followers: followers, 123 usertheme: theme, 124 bg: bg, 125 + curuser: req.session.handle, 126 year: new Date().getFullYear(), 127 }); 128 }, ··· 141 post: post, 142 usertheme: theme, 143 bg: bg, 144 + curuser: req.session.handle, 145 year: new Date().getFullYear(), 146 }); 147 }); 148 149 router.get("/tw/search", async (req: Request, res: Response) => { 150 + const did = await getActorDid(agent, (req as any).session.handle); 151 const { theme, bg } = await loadTheme(agent, did); 152 153 res.render("search_users", { ··· 155 title: "Bluesky / people search", 156 usertheme: theme, 157 bg: bg, 158 + curuser: req.session.handle, 159 year: new Date().getFullYear(), 160 }); 161 }); ··· 163 router.get("/tw/search/users", async (req: Request, res: Response) => { 164 const { q } = req.query; 165 const actors = await searchActors(pubagent, q as string); 166 + const did = await getActorDid(agent, (req as any).session.handle); 167 const { theme, bg } = await loadTheme(agent, did); 168 169 res.render("results_users", { ··· 173 actor: actors, 174 usertheme: theme, 175 bg: bg, 176 + curuser: req.session.handle, 177 year: new Date().getFullYear(), 178 }); 179 }); ··· 191 cursor: feed.cursor, 192 feedData: feedData, 193 record: req.params.record, 194 + curuser: req.session.handle, 195 year: new Date().getFullYear(), 196 }); 197 },
+1 -1
views/partials/friends.hbs
··· 2 {{#each follows}} 3 <span class="vcard"> 4 <a href="../profile/{{this.handle}}" class="url" rel="contact" title="{{this.displayName}}"> 5 - <img alt="{{this.displayName}}" class="photo fn" height="24" id="profile-image" src="{{this.avatar}}" width="24" /> 6 </a> 7 </span> 8 {{/each}}
··· 2 {{#each follows}} 3 <span class="vcard"> 4 <a href="../profile/{{this.handle}}" class="url" rel="contact" title="{{this.displayName}}"> 5 + <img alt="{{this.displayName}}" class="photo fn" height="24" id="profile-image" src="{{this.avatar}}" width="24" /> 6 </a> 7 </span> 8 {{/each}}
-1
views/partials/mobilefooter.hbs
··· 1 {{#if curuser}} 2 <br /> 3 <div><a href="/m/home">Home</a></div> 4 - <div><a href="/m/replies">@{{curuser}}</a></div> 5 <div><a href="/m/profile/{{curuser}}">Your Profile</a></div> 6 <div><a href="/m/profile/{{curuser}}/following">People You Follow</a></div> 7 <form method="post" action="../signout" class="a">
··· 1 {{#if curuser}} 2 <br /> 3 <div><a href="/m/home">Home</a></div> 4 <div><a href="/m/profile/{{curuser}}">Your Profile</a></div> 5 <div><a href="/m/profile/{{curuser}}/following">People You Follow</a></div> 6 <form method="post" action="../signout" class="a">