forked from MarseyWorld/MarseyWorld
add description to new badge messages
parent
28aaf15d85
commit
e382334c53
|
@ -25,7 +25,7 @@ def badge_grant(user, badge_id, description=None, url=None):
|
|||
|
||||
send_repeatable_notification(user.id,
|
||||
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):
|
||||
|
|
|
@ -567,7 +567,7 @@ def badge_grant_post(v):
|
|||
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}"
|
||||
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)
|
||||
|
||||
ma = ModAction(
|
||||
|
|
Loading…
Reference in New Issue