mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +00:00
Fix tweet ID parsing bug on 32-bit
This commit is contained in:
parent
f0db3a8bc2
commit
42421e58de
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ proc parseTweet(js: JsonNode): Tweet =
|
||||||
else: discard
|
else: discard
|
||||||
|
|
||||||
proc finalizeTweet(global: GlobalObjects; id: string): Tweet =
|
proc finalizeTweet(global: GlobalObjects; id: string): Tweet =
|
||||||
let intId = if id.len > 0: parseInt(id) else: 0
|
let intId = if id.len > 0: parseBiggestInt(id) else: 0
|
||||||
result = global.tweets.getOrDefault(id, Tweet(id: intId))
|
result = global.tweets.getOrDefault(id, Tweet(id: intId))
|
||||||
|
|
||||||
if result.quote.isSome:
|
if result.quote.isSome:
|
||||||
|
|
Loading…
Reference in a new issue