From d2c2d313a2b5aa8c7315fc4d5b1efba8cfabfaeb Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 18 Feb 2023 20:10:44 +0200 Subject: [PATCH] show the reply box on deleted posts --- files/routes/comments.py | 4 ++-- files/templates/submission.html | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index a2b369152..459e1bfd4 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -124,9 +124,9 @@ def comment(v:User): if not User.can_see(v, parent): abort(403) if not isinstance(parent, User) and parent.deleted_utc != 0: if isinstance(parent, Submission): - abort(403, "This post has been deleted!") + abort(403, "You can't reply to deleted posts!") else: - abort(403, "This comment has been deleted!") + abort(403, "You can't reply to deleted comments!") if posting_to_submission: sub = post_target.sub diff --git a/files/templates/submission.html b/files/templates/submission.html index fd58a905d..b74a03177 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -321,9 +321,7 @@ - {% if not p.deleted_utc %} - {{macros.comment_reply_box(p.fullname, 'comment-reply-' + p.fullname, subwrapper_css_classes='mb-3', enable_cancel_button=false)}} - {% endif %} + {{macros.comment_reply_box(p.fullname, 'comment-reply-' + p.fullname, subwrapper_css_classes='mb-3', enable_cancel_button=false)}} {% if comment_info %}
View entire discussion