use realbody

also fix a bug where mops aren't shown edit tools
pull/20/head
justcool393 2022-11-19 05:02:35 -06:00
parent 1287c96b86
commit dcaa6bc394
1 changed files with 7 additions and 2 deletions

View File

@ -242,11 +242,16 @@
</div>
{% else %}
<div id="post-body" class="post-body mt-3">
<div id="post-text"><code>[Deleted by author.]</code></div>
<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 or v.admin_level >= PERMS['POST_EDITING']) and not v.is_suspended %}
{% 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">
<form id="post-edit-form-{{p.id}}" action="/edit_post/{{p.id}}" method="post" enctype="multipart/form-data">
<input type="hidden" name="formkey" value="{{v|formkey}}">