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

Use "q" instead of "text" for search compatibility

Fixes #49
This commit is contained in:
Zed
2019-09-30 22:24:01 +02:00
parent 53a7113905
commit 8cae23dc7e
4 changed files with 10 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ template respRss*(rss: typed) =
proc createRssRouter*(cfg: Config) =
router rss:
get "/search/rss":
if @"text".len > 200:
if @"q".len > 200:
resp Http400, showError("Search input too long.", cfg.title)
let query = initQuery(params(request))