mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Compare string length instead of empty string
This commit is contained in:
parent
abe21e3ebf
commit
89b6cfdf98
3 changed files with 6 additions and 6 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue