notification-bot: @-mention the user subscribing you to a stream.

This commit is contained in:
Rohitt Vashishtha
2018-07-30 11:36:37 +05:30
committed by Tim Abbott
parent 71fb8d6195
commit d83ef30904
2 changed files with 4 additions and 4 deletions

View File

@@ -259,10 +259,10 @@ def you_were_just_subscribed_message(acting_user: UserProfile,
stream_names: Set[str]) -> str:
subscriptions = sorted(list(stream_names))
if len(subscriptions) == 1:
return _("Hi there! %s just subscribed you to the stream #**%s**." %
return _("Hi there! @**%s** just subscribed you to the stream #**%s**." %
(acting_user.full_name, subscriptions[0]))
message = _("Hi there! %s just subscribed you to the following streams:" %
message = _("Hi there! @**%s** just subscribed you to the following streams:" %
(acting_user.full_name,))
message += "\n\n"
for stream_name in subscriptions: