2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-22 13:26:14 +01:00

Loop videos, on the assumption that most are gifvs.

Also, use media.preview_url for the preview image rather than the first frame.
This commit is contained in:
Jason McBrayer 2018-11-06 11:09:05 -05:00
parent be3bb1ee1a
commit 9eda3c91cb

View File

@ -76,7 +76,8 @@
</a>
{% else %}
<video class="level-item is-max-256" controls>
<video class="level-item is-max-256" controls loop
poster="{{ media.preview_url }}">
<source src="{{ media.url }}" type="video/mp4">
<a href="{{ media.url }}">
{% if toot.sensitive %}