mirror of https://github.com/zedeus/nitter
Use Chain.hasMore, not Chain.more
This commit is contained in:
parent
4c67661812
commit
31fdc369f9
|
@ -180,7 +180,7 @@ proc createRssRouter*(cfg: Config) =
|
||||||
error = conv.tweet.tombstone
|
error = conv.tweet.tombstone
|
||||||
resp Http404, showError(error, cfg)
|
resp Http404, showError(error, cfg)
|
||||||
|
|
||||||
while conv.after.more != 0:
|
while conv.after.hasMore:
|
||||||
let newer_conv = await getTweet($conv.after.content[^1].id)
|
let newer_conv = await getTweet($conv.after.content[^1].id)
|
||||||
if newer_conv == nil or newer_conv.tweet == nil or newer_conv.tweet.id == 0:
|
if newer_conv == nil or newer_conv.tweet == nil or newer_conv.tweet.id == 0:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue