diff --git a/files/routes/admin.py b/files/routes/admin.py index aa37f829b..8fec7cb22 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1446,6 +1446,9 @@ def unsticky_post(post_id, v): @admin_level_required(PERMS['POST_COMMENT_MODERATION']) def sticky_comment(cid, v): comment = get_comment(cid, v=v) + if comment.is_banned: + abort(403, "Can't sticky removed comments!") + if not comment.stickied: comment.stickied = v.username