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

Fix tweet tags being shown as unavailable tweets

This commit is contained in:
Zed
2019-06-27 21:48:59 +02:00
parent e2039ec81c
commit 9dc4b240e7
3 changed files with 8 additions and 7 deletions

View File

@@ -188,10 +188,11 @@ proc getTimeline*(username: string; after=""): Future[Timeline] {.async.} =
minId: json.getOrDefault("min_position").getStr(""),
)
if json["new_latent_count"].to(int) == 0:
return
if json["new_latent_count"].to(int) == 0: return
if not json.hasKey("items_html"): return
let html = parseHtml(json["items_html"].to(string))
result.tweets = parseTweets(html)
await getVideos(result.tweets)