mirror of https://github.com/zulip/zulip.git
Fix the no-apply-markdown case.
(imported from commit aeaa2cec9858ff028a58e7c0c8bf06f5d3200c8e)
This commit is contained in:
parent
6784e8cbf4
commit
6bce5f95b0
|
@ -210,6 +210,8 @@ class Zephyr(models.Model):
|
|||
def to_dict(self, apply_markdown):
|
||||
if apply_markdown:
|
||||
content = md_engine.convert(self.content)
|
||||
else:
|
||||
content = self.content
|
||||
return {'id' : self.id,
|
||||
'sender_email' : self.sender.user.email,
|
||||
'sender_name' : self.sender.full_name,
|
||||
|
|
Loading…
Reference in New Issue