Use int for tweet ids for correct thread sorting

This commit is contained in:
Zed
2019-10-10 18:22:14 +02:00
parent 4407651ed6
commit 1faf976d7c
8 changed files with 23 additions and 23 deletions

View File

@@ -68,7 +68,7 @@ proc getVideoFetch(tweet: Tweet; agent, token: string) {.async.} =
let
headers = genHeaders({"authorization": auth, "x-guest-token": token},
agent, base / getLink(tweet), lang=false)
url = apiBase / (videoUrl % tweet.id)
url = apiBase / (videoUrl % $tweet.id)
json = await fetchJson(url, headers)
if json == nil:
@@ -106,7 +106,7 @@ proc getPoll*(tweet: Tweet; agent: string) {.async.} =
let
headers = genHeaders(agent, base / getLink(tweet), auth=true)
url = base / (pollUrl % tweet.id)
url = base / (pollUrl % $tweet.id)
html = await fetchHtml(url, headers)
if html == nil: return