tangled
alpha
login
or
join now
oppi.li
/
lurker
16
fork
atom
selfhostable, read-only reddit client
16
fork
atom
overview
issues
1
pulls
pipelines
fix sub-search
oppi.li
1 year ago
6ada78b8
73719875
+1
-1
1 changed file
expand all
collapse all
unified
split
src
routes
index.js
+1
-1
src/routes/index.js
···
117
117
if (!req.query || !req.query.q) {
118
118
res.render("sub-search", { user: req.user });
119
119
} else {
120
120
-
const { items, after } = await G.searchSubreddits(q);
120
120
+
const { items, after } = await G.searchSubreddits(req.query.q);
121
121
const subs = db
122
122
.query("SELECT subreddit FROM subscriptions WHERE user_id = $id")
123
123
.all({ id: req.user.id })