1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-13 07:42:48 -05:00

Add multi-user timeline support

This commit is contained in:
Zed
2019-08-06 17:41:06 +02:00
parent 4660d23667
commit eeead99e32
8 changed files with 80 additions and 35 deletions

View File

@@ -308,7 +308,7 @@ proc getTimeline*(username, after, agent: string): Future[Timeline] {.async.} =
let json = await fetchJson(base / (timelineUrl % username) ? params, headers)
result = await finishTimeline(json, none(Query), after, agent)
proc getTimelineSearch*(username, after, agent: string; query: Query): Future[Timeline] {.async.} =
proc getTimelineSearch*(query: Query; after, agent: string): Future[Timeline] {.async.} =
let queryParam = genQueryParam(query)
let queryEncoded = encodeUrl(queryParam, usePlus=false)