Fix empty image URLs in photo rail

This commit is contained in:
Zed 2025-02-05 20:27:23 +01:00
parent bc38315d12
commit 54ba1e30b5

View file

@ -456,7 +456,8 @@ proc parseGraphPhotoRail*(js: JsonNode): PhotoRail =
elif t.card.isSome: get(t.card).image elif t.card.isSome: get(t.card).image
else: "" 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: if result.len == 16:
break break