Skip to content

Commit e29008a

Browse files
committed
Include "Video" and link for video tweets in RSS
Fixes #836
1 parent f8a17fd commit e29008a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/views/rss.nimf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ Twitter feed for: ${desc}. Generated by ${cfg.hostname}
6060
<img src="${urlPrefix}${getPicUrl(photo)}" style="max-width:250px;" />
6161
# end for
6262
#elif tweet.video.isSome:
63-
<img src="${urlPrefix}${getPicUrl(get(tweet.video).thumb)}" style="max-width:250px;" />
63+
<a href="${urlPrefix}${tweet.getLink}">
64+
<br>Video<br>
65+
<img src="${urlPrefix}${getPicUrl(get(tweet.video).thumb)}" style="max-width:250px;" />
66+
</a>
6467
#elif tweet.gif.isSome:
6568
# let thumb = &"{urlPrefix}{getPicUrl(get(tweet.gif).thumb)}"
6669
# let url = &"{urlPrefix}{getPicUrl(get(tweet.gif).url)}"

0 commit comments

Comments
 (0)