notes: loop "gifs"

This commit is contained in:
HookedBehemoth 2022-07-02 22:40:42 +02:00
parent eebaa7b748
commit 0ed9414d87

View file

@ -37,7 +37,7 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article; t
result = image
of ArticleMediaType.gif:
let video = buildHtml(span(class="image")):
video(src=media.url.getVidUrl, controls="", autoplay="")
video(src=media.url.getVidUrl, controls="", autoplay="", loop="")
result = video
else: discard
of ArticleEntityType.tweet: