From 37522b71f6da3131a1b60e6ba31c563f8c94614b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 18 Oct 2021 21:09:42 +0200 Subject: [PATCH] fds --- files/routes/awards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 0a59f6a4c..584c07094 100755 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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!")