This commit is contained in:
Aevann1 2021-12-26 04:29:01 +02:00
parent c09ff3d2bc
commit 82d77d9c14
5 changed files with 83 additions and 128 deletions

View file

@ -439,13 +439,8 @@ def badge_grant_post(v):
if url: new_badge.url = url
g.db.add(new_badge)
g.db.flush()
text = f"""
@{v.username} has given you the following profile badge:
\n\n![]({new_badge.path})
\n\n{new_badge.name}
"""
text = f"@{v.username} has given you the following profile badge:\n\n![]({new_badge.path})\n\n{new_badge.name}"
send_notification(user.id, text)
g.db.commit()