mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Send feedback to a queue to be forwarded to staging.
(imported from commit 4a9a1bfc6c95763a816263a726cc61b3ca90bf15)
This commit is contained in:
		@@ -342,6 +342,13 @@ def do_send_messages(messages):
 | 
			
		||||
            if message['stream'].invite_only:
 | 
			
		||||
                data['invite_only'] = True
 | 
			
		||||
        tornado_callbacks.send_notification(data)
 | 
			
		||||
        if message['message'].recipient.type == Recipient.PERSONAL and \
 | 
			
		||||
                message['recipients'][0].email == "feedback@zulip.com":
 | 
			
		||||
            queue_json_publish(
 | 
			
		||||
                    'feedback_messages',
 | 
			
		||||
                    message['message'].to_dict(apply_markdown=False),
 | 
			
		||||
                    lambda x: None
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
    # Note that this does not preserve the order of message ids
 | 
			
		||||
    # returned.  In practice, this shouldn't matter, as we only
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user