fix [Deleted by author.] crap

pull/20/head
justcool393 2022-11-19 05:05:49 -06:00
parent dcaa6bc394
commit 70997cb729
1 changed files with 41 additions and 51 deletions

View File

@ -184,6 +184,7 @@
{% if not v_forbid_deleted %}
<div id="post-body" class="post-body mt-3">
{% if not v_forbid_deleted %}
{% if p.realurl(v) %}
{% if not p.embed_url and not p.is_image %}
<a rel="nofollow noopener" href="{{p.realurl(v)}}" {% if v.newtabexternal %}target="_blank"{% endif %}>
@ -195,7 +196,6 @@
{% endif %}
{% endif %}
{% if p.embed_url %}
{% if p.domain == "twitter.com" %}
{{p.embed_url | safe}}
@ -208,9 +208,10 @@
{{p.embed_url | safe}}
{% endif %}
{% endif %}
{% endif %}
<div id="post-text" class="{% if p.author.agendaposter and p.sub != 'chudrama' %}agendaposter{% endif %} {% if p.author.rainbow %}rainbow-text{% endif %}">
{% if not v_forbid_deleted %}
{% if p.is_image %}
<div class="row no-gutters mb-4">
<div class="col">
@ -232,24 +233,13 @@
</div>
</div>
{% endif %}
{{p.realbody(v) | safe}}
{% if p.is_banned and p.ban_reason %}
<div class="text-removed mb-0">removed by @{{p.ban_reason}} (Admin)</div>
{% endif %}
</div>
</div>
{% else %}
<div id="post-body" class="post-body mt-3">
<div id="post-text">
{{p.realbody(v) | safe}}
{% if p.is_banned and p.ban_reason %}
<div class="text-removed mb-0">removed by @{{p.ban_reason}} (Admin)</div>
{% endif %}
</div>
</div>
{% endif %}
{% if v and (v.id==p.author_id and not v.is_suspended) or v.admin_level >= PERMS['POST_EDITING'] %}
<div id="edit-post-body-{{p.id}}" class="d-none comment-write collapsed child">