Send feedback to a queue to be forwarded to staging.

(imported from commit 4a9a1bfc6c95763a816263a726cc61b3ca90bf15)
This commit is contained in:
Luke Faraone
2013-10-17 16:55:09 -04:00
parent 1fa65915f2
commit e552307511
7 changed files with 95 additions and 0 deletions

View File

@@ -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