mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-15 08:42:48 -05:00
Skip list request if ID is empty
This commit is contained in:
@@ -22,6 +22,7 @@ proc getGraphListById*(id: string): Future[List] {.async.} =
|
|||||||
result = parseGraphList(js)
|
result = parseGraphList(js)
|
||||||
|
|
||||||
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
|
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
|
||||||
|
if id.len == 0: return
|
||||||
let
|
let
|
||||||
ps = genParams({"list_id": id, "ranking_mode": "reverse_chronological"}, after)
|
ps = genParams({"list_id": id, "ranking_mode": "reverse_chronological"}, after)
|
||||||
url = listTimeline ? ps
|
url = listTimeline ? ps
|
||||||
|
|||||||
Reference in New Issue
Block a user