mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
notification-bot: @-mention the user subscribing you to a stream.
This commit is contained in:
committed by
Tim Abbott
parent
71fb8d6195
commit
d83ef30904
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user