fix previous commit
parent
687cd766b9
commit
05689c87f6
|
@ -21,6 +21,7 @@ def badge_grant(user, badge_id, description=None, url=None):
|
||||||
)
|
)
|
||||||
|
|
||||||
g.db.add(badge)
|
g.db.add(badge)
|
||||||
|
g.db.flush()
|
||||||
|
|
||||||
send_repeatable_notification(user.id,
|
send_repeatable_notification(user.id,
|
||||||
f"@AutoJanny has given you the following profile badge:\n\n" +
|
f"@AutoJanny has given you the following profile badge:\n\n" +
|
||||||
|
|
|
@ -544,6 +544,7 @@ def badge_grant_post(v):
|
||||||
if url: new_badge.url = url
|
if url: new_badge.url = url
|
||||||
|
|
||||||
g.db.add(new_badge)
|
g.db.add(new_badge)
|
||||||
|
g.db.flush()
|
||||||
|
|
||||||
if v.id != user.id:
|
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}"
|
text = f"@{v.username} has given you the following profile badge:\n\n![]({new_badge.path})\n\n{new_badge.name}"
|
||||||
|
|
Loading…
Reference in New Issue