forked from rDrama/rDrama
show the reply box on deleted posts
parent
96a85bd140
commit
d2c2d313a2
|
@ -124,9 +124,9 @@ def comment(v:User):
|
||||||
if not User.can_see(v, parent): abort(403)
|
if not User.can_see(v, parent): abort(403)
|
||||||
if not isinstance(parent, User) and parent.deleted_utc != 0:
|
if not isinstance(parent, User) and parent.deleted_utc != 0:
|
||||||
if isinstance(parent, Submission):
|
if isinstance(parent, Submission):
|
||||||
abort(403, "This post has been deleted!")
|
abort(403, "You can't reply to deleted posts!")
|
||||||
else:
|
else:
|
||||||
abort(403, "This comment has been deleted!")
|
abort(403, "You can't reply to deleted comments!")
|
||||||
|
|
||||||
if posting_to_submission:
|
if posting_to_submission:
|
||||||
sub = post_target.sub
|
sub = post_target.sub
|
||||||
|
|
|
@ -321,9 +321,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not p.deleted_utc %}
|
{{macros.comment_reply_box(p.fullname, 'comment-reply-' + p.fullname, subwrapper_css_classes='mb-3', enable_cancel_button=false)}}
|
||||||
{{macros.comment_reply_box(p.fullname, 'comment-reply-' + p.fullname, subwrapper_css_classes='mb-3', enable_cancel_button=false)}}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if comment_info %}
|
{% if comment_info %}
|
||||||
<div class="total mt-1"><a href="{{p.permalink}}">View entire discussion</a></div>
|
<div class="total mt-1"><a href="{{p.permalink}}">View entire discussion</a></div>
|
||||||
|
|
Loading…
Reference in New Issue