fix distinguish no longer appearing in mod log for JL4 on WPD

master
Aevann 2024-08-03 20:11:25 +03:00
parent e298fde98a
commit bee4d518f0
2 changed files with 7 additions and 5 deletions

View File

@ -782,10 +782,10 @@ def admin_distinguish_comment(c_id, v):
g.db.add(comment)
if comment.parent_post and v.mods_hole(comment.post.hole):
cls = HoleAction
else:
if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH']:
cls = ModAction
else:
cls = HoleAction
ma = cls(
kind=kind,

View File

@ -1222,8 +1222,10 @@ def distinguish_post(post_id, v):
g.db.add(post)
if v.mods_hole(post.hole): cls = HoleAction
else: cls = ModAction
if v.admin_level >= PERMS['POST_COMMENT_DISTINGUISH']:
cls = ModAction
else:
cls = HoleAction
ma = cls(
kind=kind,