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