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
|
|
@ -25,7 +25,7 @@ proc createRssRouter*(cfg: Config) =
|
|||
resp Http400, showError("Search input too long.", cfg.title)
|
||||
|
||||
let query = initQuery(params(request))
|
||||
if query.kind != custom:
|
||||
if query.kind != tweets:
|
||||
resp Http400, showError("Only Tweet searches are allowed for RSS feeds.", cfg.title)
|
||||
|
||||
let tweets = await getSearch[Tweet](query, "", getAgent())
|
||||
|
|
|
|||
Loading…
Reference in a new issue