mirror of https://github.com/zulip/zulip.git
Re-enable markdown for all realms but CUSTOMER1Labs.
(imported from commit 51e770b50e8c678c245d099dc9177aa49ecb5084)
This commit is contained in:
parent
ebb9cfa65d
commit
4dae30e750
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue