forked from MarseyWorld/MarseyWorld
fix distinguish no longer appearing in mod log for JL4 on WPD
parent
e298fde98a
commit
bee4d518f0
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue