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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user