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

Improve search endpoint compatibility

Fixes #63
This commit is contained in:
Zed
2019-10-08 13:45:47 +02:00
parent aa4f3f69bb
commit 1c9c6a2947
7 changed files with 15 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ proc createSearchRouter*(cfg: Config) =
let query = initQuery(params(request))
case query.kind
of userSearch:
of users:
if "," in @"q":
redirect("/" & @"q")
let users = await getSearch[Profile](query, @"after", getAgent())