diff --git a/files/assets/images/emojis/marseydarkpizzashill.webp b/files/assets/images/emojis/marseydarkpizzashill.webp new file mode 100644 index 000000000..f1cb5d387 Binary files /dev/null and b/files/assets/images/emojis/marseydarkpizzashill.webp differ diff --git a/files/assets/images/hats/Coins.webp b/files/assets/images/hats/Coins.webp new file mode 100644 index 000000000..e83c62fd5 Binary files /dev/null and b/files/assets/images/hats/Coins.webp differ diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index e46102737..ec4716df8 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -144,11 +144,10 @@ def approve_marsey(v, name): new_path = f'/asset_submissions/marseys/original/{name}.{i.format.lower()}' rename(highquality, new_path) - if v.id != author.id: - author.coins += 250 - g.db.add(author) - msg = f"@{v.username} has approved a marsey you made: :{marsey.name}:\nYou have received 250 coins as a reward!" - send_repeatable_notification(author.id, msg) + author.coins += 250 + g.db.add(author) + msg = f"@{v.username} has approved a marsey you made: :{marsey.name}:\nYou have received 250 coins as a reward!" + send_repeatable_notification(author.id, msg) if v.id not in (author.id, marsey.submitter_id): msg = f"@{v.username} has approved a marsey you submitted: :{marsey.name}:" @@ -341,4 +340,4 @@ def remove_hat(v, name): os.remove(f"/asset_submissions/hats/{hat.name}.webp") os.remove(f"/asset_submissions/hats/{hat.name}") - return {"message": f"'{hat.name}' removed!"} \ No newline at end of file + return {"message": f"'{hat.name}' removed!"}