forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-25 01:49:00 +02:00
parent eb5bfcddee
commit 2f48dc53e3
1 changed files with 2 additions and 0 deletions

View File

@ -442,6 +442,7 @@ def badge_grant_post(v):
g.db.add(new_badge)
if v.id != user.id:
g.db.flush()
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)
@ -718,6 +719,7 @@ def agendaposter(user_id, v):
if not user.has_badge(26):
badge = Badge(user_id=user.id, badge_id=26)
g.db.add(badge)
g.db.flush()
send_notification(user.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
else: