embeds should be above text

master
Aevann 2024-04-07 07:48:13 +02:00
parent c4c141e8c0
commit 6f4ac82a68
1 changed files with 9 additions and 9 deletions

View File

@ -199,15 +199,6 @@
{% endif %}
{% if not v_forbid_deleted %}
{% if p.realbody(v) or (p.embed and p.domain == "twitter.com") %}
<div class="{% if p.chudded %}text-uppercase chud-img chud-{{p.id_last_num}}{% endif %} d-none card rounded border post-preview" id="post-text-{{p.id}}">
{% if p.domain == "twitter.com" %}
{{p.embed | safe}}
{% endif %}
{{p.realbody(v) | safe}}
</div>
{% endif %}
{% if p.is_video %}
<div id="video-{{p.id}}" class="d-none ml-md-5 mt-md-4 mt-2 mx-sm-auto">
<p class="resizable">
@ -223,6 +214,15 @@
{{p.embed | safe}}
</div>
{% endif %}
{% if p.realbody(v) or (p.embed and p.domain == "twitter.com") %}
<div class="{% if p.chudded %}text-uppercase chud-img chud-{{p.id_last_num}}{% endif %} d-none card rounded border post-preview" id="post-text-{{p.id}}">
{% if p.domain == "twitter.com" %}
{{p.embed | safe}}
{% endif %}
{{p.realbody(v) | safe}}
</div>
{% endif %}
{% endif %}
</div>
{% else %}