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

Compare string length instead of empty string

This commit is contained in:
Zed
2019-06-21 02:16:10 +02:00
parent abe21e3ebf
commit 89b6cfdf98
3 changed files with 6 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ proc getTimeline*(username: string; after=""): Future[Tweets] {.async.} =
})
var url = timelineUrl % username
if after != "":
if after.len > 0:
url &= "&max_position=" & after
let html = await client.fetchHtml(base / url, jsonKey="items_html")