diff --git a/files/routes/comments.py b/files/routes/comments.py index 5ce46b84e..fd5f4cb94 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -773,8 +773,10 @@ def admin_distinguish_comment(c_id, v): g.db.add(comment) - if v.mods_hole(comment.post.hole): cls = HoleAction - else: cls = ModAction + if comment.parent_post and v.mods_hole(comment.post.hole): + cls = HoleAction + else: + cls = ModAction ma = cls( kind=kind,