give notif on bagde removal

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-13 12:27:09 +02:00
parent 7edc44ff6f
commit f11dcf031b
1 changed files with 5 additions and 1 deletions

View File

@ -573,7 +573,7 @@ def badge_grant_post(v):
if v.id != user.id:
text = f"@{v.username} has given you the following profile badge:\n\n![]({new_badge.path})\n\n**{new_badge.name}**\n\n{new_badge.badge.description}"
send_notification(user.id, text)
send_repeatable_notification(user.id, text)
ma = ModAction(
kind="badge_grant",
@ -618,6 +618,10 @@ def badge_remove_post(v):
if not badge:
return render_template("admin/badge_remove.html", v=v, badge_types=badges, error="User doesn't have that badge.")
if v.id != user.id:
text = f"@{v.username} has removed the following profile badge from you:\n\n![]({badge.path})\n\n**{badge.name}**\n\n{badge.badge.description}"
send_repeatable_notification(user.id, text)
ma = ModAction(
kind="badge_remove",
user_id=v.id,