Add note to invite notification on historical messages.

(imported from commit ea3da4bd5b3e461b37b1d5af685d96bf5ecdb847)
This commit is contained in:
Tim Abbott 2013-04-03 16:49:10 -04:00
parent 6f22fb706d
commit 5ab44f6993
2 changed files with 3 additions and 1 deletions

View File

@ -854,7 +854,8 @@ class SubscriptionAPITest(AuthedTestCase):
self.assertEqual(msg.sender_id,
self.get_user_profile("humbug+notifications@humbughq.com").id)
expected_msg = ("Hi there! We thought you'd like to know that %s just "
"subscribed you to the stream '%s'"
"subscribed you to the stream '%s'\nYou can see historical "
"content on a non-invite-only stream by narrowing to it."
% (self.user_profile.full_name, streams[0]))
self.assertEqual(msg.content, expected_msg)
recipients = get_display_recipient(msg.recipient)

View File

@ -1029,6 +1029,7 @@ def add_subscriptions_backend(request, user_profile,
msg += "* %s%s\n" % (
stream,
" (**invite-only**)" if private_streams[stream] else "")
msg += "\nYou can see historical content on a non-invite-only stream by narrowing to it."
internal_send_message("humbug+notifications@humbughq.com",
"private", email, "", msg)