mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
Re-enable markdown rendering for API users and the github bot
(imported from commit 31db13ef8b7e5224a07f784247092e2eb9cd1654)
This commit is contained in:
@@ -457,7 +457,9 @@ class Message(models.Model):
|
||||
gravatar_hash = gravatar_hash(self.sender.user.email))
|
||||
|
||||
if apply_markdown:
|
||||
# obj['content'] = bugdown.convert(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:
|
||||
|
||||
Reference in New Issue
Block a user