fix <video> if condition

master
Aevann1 2022-12-11 18:21:32 +02:00
parent 3c84a84e15
commit a60a73aef2
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@
<div class="row no-gutters mb-4">
<div class="col">
<p class="resizable bigger">
<video {% if p.thumb_url %}poster="{{p.thumb_url}}"{% endif %} controls preload="none" src="{{p.realurl(v)}}"></video>
<video {% if p.thumburl %}poster="{{p.thumb_url}}"{% endif %} controls preload="none" src="{{p.realurl(v)}}"></video>
</p>
</div>
</div>

View File

@ -248,7 +248,7 @@
{% elif p.is_video %}
<div id="video-{{p.id}}" class="ml-5 {% if p.over_18 or not ((v and v.cardview) or (not v and CARD_VIEW)) %}d-none{% endif %} mt-4">
<p class="resizable bigger">
<video {% if p.thumb_url %}poster="{{p.thumb_url}}"{% endif %} id="video2-{{p.id}}" controls preload="none" src="{{p.realurl(v)}}"></video>
<video {% if p.thumburl %}poster="{{p.thumb_url}}"{% endif %} id="video2-{{p.id}}" controls preload="none" src="{{p.realurl(v)}}"></video>
</p>
</div>
{% elif p.is_audio %}