Skip to content

Commit

Permalink
Initial steps towards whitelabeling new realms.
Browse files Browse the repository at this point in the history
Truthfully, the actual way to do this is going to be a bit
more involved and also involves changing Realm.NOTIFICATION_STREAM_NAME,
probably on a realm-by-realm basis.

(imported from commit b6a05849d215e07ee6716d116ff5e2c819d5b4be)
  • Loading branch information
wdaher committed Jul 30, 2014
1 parent 47873c1 commit a54d50a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zerver/lib/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,9 +1563,10 @@ def do_create_realm(domain, name, restricted_to_domain=True):
realm.save(update_fields=['notifications_stream'])

# Include a welcome message in this notifications stream
content = """Hello, and welcome to Zulip!
product_name = "Zulip"
content = """Hello, and welcome to %s!
This is a message on stream `zulip` with the topic `welcome`. We'll use this stream for system-generated notifications."""
This is a message on stream `%s` with the topic `welcome`. We'll use this stream for system-generated notifications.""" % (product_name, notifications_stream.name,)
msg = internal_prep_message(settings.WELCOME_BOT, 'stream',
notifications_stream.name, "welcome",
content, realm=realm)
Expand Down

0 comments on commit a54d50a

Please sign in to comment.