fix previous commit

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-17 19:57:32 +02:00
parent 687cd766b9
commit 05689c87f6
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ def badge_grant(user, badge_id, description=None, url=None):
)
g.db.add(badge)
g.db.flush()
send_repeatable_notification(user.id,
f"@AutoJanny has given you the following profile badge:\n\n" +

View File

@ -544,6 +544,7 @@ def badge_grant_post(v):
if url: new_badge.url = url
g.db.add(new_badge)
g.db.flush()
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}"