Re-enable markdown for all realms but CUSTOMER1Labs.

(imported from commit 51e770b50e8c678c245d099dc9177aa49ecb5084)
This commit is contained in:
Tim Abbott 2012-12-11 12:04:46 -05:00
parent ebb9cfa65d
commit 4dae30e750
1 changed files with 2 additions and 1 deletions

View File

@ -457,7 +457,8 @@ class Message(models.Model):
gravatar_hash = gravatar_hash(self.sender.user.email))
if apply_markdown:
if self.sending_client.name in ('API', 'github_bot'):
if (self.sender.realm.domain != "customer1.invalid" or
self.sending_client.name in ('API', 'github_bot')):
obj['content'] = bugdown.convert(self.content)
else:
obj['content'] = linebreak(escape(self.content))