mirror of https://github.com/zulip/zulip.git
Link to the stream only in the "subscribed" PM, not on the announce stream.
Until we can add a banner to help users subscribe, it may be confusing to narrow to a stream where you are not subscribed. Partial revert of 390bdef (imported from commit ea75fc59b979589b975465a3fecffea0f014fcf6)
This commit is contained in:
parent
4d7b4b007a
commit
231521f53c
|
@ -1701,15 +1701,9 @@ def add_subscriptions_backend(request, user_profile,
|
|||
if notifications_stream is not None:
|
||||
if len(created_streams) > 1:
|
||||
stream_msg = "the following streams: %s" % \
|
||||
(", ".join('[%s](%s)' % (
|
||||
s.name,
|
||||
stream_link(s.name),
|
||||
) for s in created_streams),)
|
||||
(", ".join('`%s`' % (s.name,) for s in created_streams),)
|
||||
else:
|
||||
stream_msg = "a new stream [%s](%s)" % (
|
||||
created_streams[0].name,
|
||||
stream_link(created_streams[0].name)
|
||||
)
|
||||
stream_msg = "a new stream `%s`" % (created_streams[0].name)
|
||||
msg = ("%s just created %s. To join, visit your [Streams page](#subscriptions)."
|
||||
% (user_profile.full_name, stream_msg))
|
||||
notifications.append(internal_prep_message(settings.NOTIFICATION_BOT,
|
||||
|
|
Loading…
Reference in New Issue