mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
streams: Add id to user mentions for stream notifications.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user