mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Fix segfault
This commit is contained in:
parent
2898efab6b
commit
4bf3df94f8
1 changed files with 2 additions and 1 deletions
|
|
@ -170,7 +170,8 @@ proc getGraphTweetSearch*(query: Query; after=""): Future[Timeline] {.async.} =
|
|||
|
||||
# when no more items are available the API just returns the last page in
|
||||
# full. this detects that and clears the page instead.
|
||||
if after.len > 0 and after[0..<64] == result.bottom[0..<64]:
|
||||
if after.len > 0 and result.bottom.len > 0 and
|
||||
after[0..<64] == result.bottom[0..<64]:
|
||||
result.content.setLen(0)
|
||||
|
||||
proc getGraphUserSearch*(query: Query; after=""): Future[Result[User]] {.async.} =
|
||||
|
|
|
|||
Loading…
Reference in a new issue