From a83739f81dcd35659bb67670140fe99944438a9f Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 7 Feb 2024 01:45:30 +0200 Subject: [PATCH] actually give them the coins --- files/routes/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index aa4d4b5f3..8f289e904 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -2205,6 +2205,8 @@ def mark_effortpost(pid, v): coins = (p.upvotes + p.downvotes) * mul + p.author.pay_account('coins', coins) + send_repeatable_notification(p.author_id, f":marseyclapping: @{v.username} (a site admin) has marked [{p.title}](/post/{p.id}) as an effortpost, it now gets x{mul} coins from votes. You have received {coins} coins retroactively, thanks! :!marseyclapping:") return {"message": "Post has been marked as an effortpost!"} @@ -2239,6 +2241,8 @@ def unmark_effortpost(pid, v): coins = (p.upvotes + p.downvotes) * mul + p.author.charge_account('coins', coins) + send_repeatable_notification(p.author_id, f":marseyitsover: @{v.username} (a site admin) has unmarked [{p.title}](/post/{p.id}) as an effortpost. {coins} coins have been deducted from you. :!marseyitsover:") return {"message": "Post has been unmarked as an effortpost!"}