1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-22 01:45:22 +01:00

Fix protected user photo rail crash

This commit is contained in:
Zed 2023-07-12 03:47:37 +02:00
parent 67203a431d
commit afbdbd293e

View File

@ -387,6 +387,10 @@ proc parseTimeline*(js: JsonNode; after=""): Timeline =
result.top = cursor{"value"}.getStr result.top = cursor{"value"}.getStr
proc parsePhotoRail*(js: JsonNode): PhotoRail = proc parsePhotoRail*(js: JsonNode): PhotoRail =
with error, js{"error"}:
if error.getStr == "Not authorized.":
return
for tweet in js: for tweet in js:
let let
t = parseTweet(tweet, js{"tweet_card"}) t = parseTweet(tweet, js{"tweet_card"})