Kaynağa Gözat

Include "Video" and link for video tweets in RSS

Fixes #836
Zed 9 ay önce
ebeveyn
işleme
e29008aed8
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      src/views/rss.nimf

+ 4 - 1
src/views/rss.nimf

@@ -60,7 +60,10 @@ Twitter feed for: ${desc}. Generated by ${cfg.hostname}
 <img src="${urlPrefix}${getPicUrl(photo)}" style="max-width:250px;" />
 #  end for
 #elif tweet.video.isSome:
-<img src="${urlPrefix}${getPicUrl(get(tweet.video).thumb)}" style="max-width:250px;" />
+<a href="${urlPrefix}${tweet.getLink}">
+<br>Video<br>
+  <img src="${urlPrefix}${getPicUrl(get(tweet.video).thumb)}" style="max-width:250px;" />
+</a>
 #elif tweet.gif.isSome:
 #  let thumb = &"{urlPrefix}{getPicUrl(get(tweet.gif).thumb)}"
 #  let url = &"{urlPrefix}{getPicUrl(get(tweet.gif).url)}"