mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Use "tweets" instead of "custom" for search query
This commit is contained in:
parent
1c9c6a2947
commit
e090dde1ea
6 changed files with 18 additions and 19 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue