add description to new badge messages

master
Aevann1 2022-09-08 19:48:56 +02:00
parent 28aaf15d85
commit e382334c53
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ def badge_grant(user, badge_id, description=None, url=None):
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" +
f"![]({badge.path})\n\n{badge.name}") f"![]({badge.path})\n\n**{badge.name}**\n{badge.description}")
def archiveorg(url): def archiveorg(url):

View File

@ -567,7 +567,7 @@ def badge_grant_post(v):
g.db.flush() 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}**\n\n{new_badge.description}"
send_notification(user.id, text) send_notification(user.id, text)
ma = ModAction( ma = ModAction(