Explorar el Código

Allow multiple images per tweet in RSS feeds

Zed hace 6 años
padre
commit
1f2a725f4d
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/views/rss.nimf

+ 3 - 1
src/views/rss.nimf

@@ -27,7 +27,9 @@
 <p>${text}</p>
 #end if
 #if tweet.photos.len > 0:
-<img src="https://${hostname}${getPicUrl(tweet.photos[0])}" width="250" />
+#for photo in tweet.photos:
+<img src="https://${hostname}${getPicUrl(photo)}" width="250" />
+#end for
 #elif tweet.video.isSome:
 <img src="https://${hostname}${getPicUrl(get(tweet.video).thumb)}" width="250" />
 #elif tweet.gif.isSome: