Skip list request if ID is empty

This commit is contained in:
Zed 2021-12-29 08:03:00 +01:00
parent 5e0eb02422
commit e3f6c72bf6
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ proc getGraphListById*(id: string): Future[List] {.async.} =
result = parseGraphList(js)
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
if id.len == 0: return
let
ps = genParams({"list_id": id, "ranking_mode": "reverse_chronological"}, after)
url = listTimeline ? ps