allow JL2 to reply to deleted posts and comments
parent
91a2c31fee
commit
23b421265d
|
@ -147,7 +147,7 @@ def comment(v):
|
|||
else:
|
||||
commenters_ping_post_id = None
|
||||
|
||||
if not isinstance(parent, User) and parent.deleted_utc != 0:
|
||||
if not isinstance(parent, User) and parent.deleted_utc != 0 and v.admin_level < PERMS['POST_COMMENT_MODERATION']:
|
||||
if isinstance(parent, Post):
|
||||
abort(403, "You can't reply to deleted posts!")
|
||||
else:
|
||||
|
|
|
@ -339,7 +339,7 @@
|
|||
{% endif %}
|
||||
</li>
|
||||
|
||||
{% if v and not c.deleted_utc %}
|
||||
{% if v %}
|
||||
<button id="toggle-reply-{{c.fullname}}-mobile" type="button" class="list-inline-item mr-3 btn nobackground toggle-reply-mobile" data-nonce="{{g.nonce}}" data-onclick="toggleReplyBox(this, 'reply-to-{{c.fullname}}')"><i class="fas fa-reply"></i></button>
|
||||
{% endif %}
|
||||
|
||||
|
@ -411,9 +411,7 @@
|
|||
<button type="button" class="btn caction py-0 nobackground px-1 text-muted copy-link" data-clipboard-text="{% if SITE == 'rdrama.net' %}{{SITE_FULL}}{{c.shortlink}}{% else %}{{c.permalink}}{% endif %}"><i class="fas fa-copy"></i>Copy Link</button>
|
||||
|
||||
{% if v %}
|
||||
{% if not c.deleted_utc %}
|
||||
<button id="toggle-reply-{{c.fullname}}" type="button" class="btn caction py-0 nobackground px-1 text-muted" data-nonce="{{g.nonce}}" data-onclick="toggleReplyBox(this, 'reply-to-{{c.fullname}}')"><i class="fas fa-reply"></i>Reply</button>
|
||||
{% endif %}
|
||||
<button id="toggle-reply-{{c.fullname}}" type="button" class="btn caction py-0 nobackground px-1 text-muted" data-nonce="{{g.nonce}}" data-onclick="toggleReplyBox(this, 'reply-to-{{c.fullname}}')"><i class="fas fa-reply"></i>Reply</button>
|
||||
|
||||
<button type="button" class="btn caction py-0 nobackground px-1 text-muted" data-bs-toggle="modal" data-bs-target="#reportCommentModal" data-nonce="{{g.nonce}}" data-onclick="report_commentModal('{{c.id}}','{{c.author_name}}',)"><i class="fas fa-flag fa-fw"></i>Report</button>
|
||||
|
||||
|
|
Loading…
Reference in New Issue