Skip to content

Commit

Permalink
Fix protected user photo rail crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jul 12, 2023
1 parent 67203a4 commit afbdbd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit afbdbd2

Please sign in to comment.