diff --git a/zephyr/models.py b/zephyr/models.py
index e7a9adae33..81289a7839 100644
--- a/zephyr/models.py
+++ b/zephyr/models.py
@@ -172,6 +172,7 @@ def get_stream(stream_name, realm):
except Stream.DoesNotExist:
return None
+# NB: This function is currently unused, but may come in handy.
def linebreak(string):
return string.replace('\n\n', '
').replace('\n', '
')
@@ -222,11 +223,7 @@ class Message(models.Model):
gravatar_hash = gravatar_hash(self.sender.user.email))
if apply_markdown:
- 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))
+ obj['content'] = bugdown.convert(self.content)
obj['content_type'] = 'text/html'
else:
obj['content'] = self.content