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

Support rss for custom search

This commit is contained in:
Zed
2019-09-20 03:35:27 +02:00
parent bd4895f6fd
commit df3001ae95
3 changed files with 19 additions and 11 deletions

View File

@@ -30,3 +30,7 @@ proc createRssRouter*(cfg: Config) =
get "/@name/media/rss":
cond '.' notin @"name"
respRss(await showRss(@"name", getMediaQuery(@"name")))
get "/@name/search/rss":
cond '.' notin @"name"
respRss(await showRss(@"name", initQuery(params(request), name=(@"name"))))