Add tweet card image (if any) to the timeline RSS feed. (#438)

This commit is contained in:
mooons 2021-09-28 00:27:13 -07:00 committed by GitHub
parent 13a4580ce2
commit 5caf77481f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ Twitter feed for: ${desc}. Generated by ${cfg.hostname}
# let url = &"{urlPrefix}{getPicUrl(get(tweet.gif).url)}"
<video poster="${thumb}" autoplay muted loop style="max-width:250px;">
<source src="${url}" type="video/mp4"</source></video>
#elif tweet.card.isSome:
# let card = tweet.card.get()
# if card.image.len > 0:
<img src="${urlPrefix}${getPicUrl(card.image)}" style="max-width:250px;" />
# end if
#end if
#end proc
#