fix 500 error

master
Aevann 2024-04-09 03:38:18 +02:00
parent 29cc058c3c
commit aced39943b
1 changed files with 4 additions and 2 deletions

View File

@ -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,