From ebb9cfa65d96a82fc7c7f6b45d29b7e592186c27 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Tue, 11 Dec 2012 11:13:13 -0500 Subject: [PATCH] Re-enable markdown rendering for API users and the github bot (imported from commit 31db13ef8b7e5224a07f784247092e2eb9cd1654) --- zephyr/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zephyr/models.py b/zephyr/models.py index 5ce737b276..0b379f072d 100644 --- a/zephyr/models.py +++ b/zephyr/models.py @@ -457,8 +457,10 @@ class Message(models.Model): gravatar_hash = gravatar_hash(self.sender.user.email)) if apply_markdown: -# obj['content'] = bugdown.convert(self.content) - obj['content'] = linebreak(escape(self.content)) + if self.sending_client.name in ('API', 'github_bot'): + obj['content'] = bugdown.convert(self.content) + else: + obj['content'] = linebreak(escape(self.content)) obj['content_type'] = 'text/html' else: obj['content'] = self.content