mirror of
https://github.com/zedeus/nitter.git
synced 2025-03-04 10:01:24 +00:00
Fix empty image URLs in photo rail
This commit is contained in:
parent
bc38315d12
commit
54ba1e30b5
1 changed files with 2 additions and 1 deletions
|
@ -456,6 +456,7 @@ proc parseGraphPhotoRail*(js: JsonNode): PhotoRail =
|
||||||
elif t.card.isSome: get(t.card).image
|
elif t.card.isSome: get(t.card).image
|
||||||
else: ""
|
else: ""
|
||||||
|
|
||||||
|
if url.len > 0:
|
||||||
result.add GalleryPhoto(url: url, tweetId: $t.id)
|
result.add GalleryPhoto(url: url, tweetId: $t.id)
|
||||||
|
|
||||||
if result.len == 16:
|
if result.len == 16:
|
||||||
|
|
Loading…
Reference in a new issue