pull/222/head
parent
8e8d6fe48d
commit
36b1f5abd0
|
@ -1417,7 +1417,7 @@ def remove_post(post_id, v):
|
|||
def approve_post(post_id, v):
|
||||
post = get_post(post_id)
|
||||
|
||||
if post.chudded and post.ban_reason == 'AutoJanny':
|
||||
if post.chudded and post.author.chud and post.ban_reason == 'AutoJanny':
|
||||
abort(400, "You can't bypass the chud award!")
|
||||
|
||||
if post.is_banned:
|
||||
|
@ -1653,7 +1653,7 @@ def remove_comment(c_id, v):
|
|||
def approve_comment(c_id, v):
|
||||
comment = get_comment(c_id)
|
||||
|
||||
if comment.chudded and comment.ban_reason == 'AutoJanny':
|
||||
if comment.chudded and comment.author.chud and comment.ban_reason == 'AutoJanny':
|
||||
abort(400, "You can't bypass the chud award!")
|
||||
|
||||
if comment.is_banned:
|
||||
|
|
Loading…
Reference in New Issue