mirror of https://github.com/zulip/zulip.git
Re-enable markdown rendering for API users and the github bot
(imported from commit 31db13ef8b7e5224a07f784247092e2eb9cd1654)
This commit is contained in:
parent
100df7e349
commit
ebb9cfa65d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue