mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-05 19:45:36 -05:00
Fix empty image URLs in photo rail
This commit is contained in:
@@ -456,7 +456,8 @@ proc parseGraphPhotoRail*(js: JsonNode): PhotoRail =
|
||||
elif t.card.isSome: get(t.card).image
|
||||
else: ""
|
||||
|
||||
result.add GalleryPhoto(url: url, tweetId: $t.id)
|
||||
if url.len > 0:
|
||||
result.add GalleryPhoto(url: url, tweetId: $t.id)
|
||||
|
||||
if result.len == 16:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user