remotes/1693045480750635534/spooky-22
Aevann1 2021-10-18 21:09:42 +02:00
parent b8bba1fd0e
commit 37522b71f6
1 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ def award_post(pid, v):
author = post.author
author.is_banned = AUTOJANNY_ACCOUNT
author.ban_reason = f"grass award used by @{v.username}"
g.db.add(self)
g.db.add(author)
link = f"[this post]({post.permalink})"
send_notification(NOTIFICATIONS_ACCOUNT, author, f"Your account has been suspended permanently for {link}. You must [provide the admins](/contact) a timestamped picture of you touching grass to get unbanned!")
@ -331,7 +331,7 @@ def award_comment(cid, v):
author = comment.author
author.is_banned = AUTOJANNY_ACCOUNT
author.ban_reason = f"grass award used by @{v.username}"
g.db.add(self)
g.db.add(author)
link = f"[this comment]({comment.permalink})"
send_notification(NOTIFICATIONS_ACCOUNT, author, f"Your account has been suspended permanently for {link}. You must [provide the admins](/contact) a timestamped picture of you touching grass to get unbanned!")