streams: Add id to user mentions for stream notifications.

This commit is contained in:
Steve Howell
2021-12-29 18:55:30 +00:00
committed by Tim Abbott
parent a16fcd3172
commit fd925e6045
2 changed files with 7 additions and 6 deletions

View File

@@ -443,13 +443,13 @@ def you_were_just_subscribed_message(
if len(subscriptions) == 1:
with override_language(recipient_user.default_language):
return _("{user_full_name} subscribed you to the stream {stream_name}.").format(
user_full_name=f"@**{acting_user.full_name}**",
user_full_name=f"@**{acting_user.full_name}|{acting_user.id}**",
stream_name=f"#**{subscriptions[0]}**",
)
with override_language(recipient_user.default_language):
message = _("{user_full_name} subscribed you to the following streams:").format(
user_full_name=f"@**{acting_user.full_name}**",
user_full_name=f"@**{acting_user.full_name}|{acting_user.id}**",
)
message += "\n\n"
for stream_name in subscriptions: