1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-10 05:55:37 -05:00

Use "tweets" instead of "custom" for search query

This commit is contained in:
Zed
2019-10-08 13:54:20 +02:00
parent 1c9c6a2947
commit e090dde1ea
6 changed files with 18 additions and 19 deletions

View File

@@ -23,7 +23,7 @@ proc createSearchRouter*(cfg: Config) =
redirect("/" & @"q")
let users = await getSearch[Profile](query, @"after", getAgent())
resp renderMain(renderUserSearch(users, prefs), request, cfg.title)
of custom:
of tweets:
let tweets = await getSearch[Tweet](query, @"after", getAgent())
let rss = "/search/rss?" & genQueryUrl(query)
resp renderMain(renderTweetSearch(tweets, prefs, getPath()), request,