mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Initial steps towards whitelabeling new realms.
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)
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user