mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-04 15:16:31 +00:00
Fix protected user photo rail crash
This commit is contained in:
parent
67203a431d
commit
afbdbd293e
1 changed files with 4 additions and 0 deletions
|
@ -387,6 +387,10 @@ proc parseTimeline*(js: JsonNode; after=""): Timeline =
|
|||
result.top = cursor{"value"}.getStr
|
||||
|
||||
proc parsePhotoRail*(js: JsonNode): PhotoRail =
|
||||
with error, js{"error"}:
|
||||
if error.getStr == "Not authorized.":
|
||||
return
|
||||
|
||||
for tweet in js:
|
||||
let
|
||||
t = parseTweet(tweet, js{"tweet_card"})
|
||||
|
|
Loading…
Reference in a new issue