allow distinguishing other ppl's comments

master
Aevann1 2022-10-30 17:32:54 +02:00
parent 8b95a02ae4
commit 8dd9045a33
1 changed files with 0 additions and 4 deletions

View File

@ -1147,8 +1147,6 @@ def approve_post(post_id, v):
def distinguish_post(post_id, v):
post = get_post(post_id)
if post.author_id != v.id and v.admin_level < PERMS['POST_COMMENT_MODERATION']: abort(403)
if post.distinguish_level:
post.distinguish_level = 0
kind = 'undistinguish_post'
@ -1340,8 +1338,6 @@ def admin_distinguish_comment(c_id, v):
comment = get_comment(c_id, v=v)
if comment.author_id != v.id: abort(403)
if comment.distinguish_level:
comment.distinguish_level = 0
kind = 'undistinguish_comment'