1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05: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> </a>
{% else %} {% 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"> <source src="{{ media.url }}" type="video/mp4">
<a href="{{ media.url }}"> <a href="{{ media.url }}">
{% if toot.sensitive %} {% if toot.sensitive %}