Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

markdown: Comment why we do not hash or use STATIC_URL for :zulip:.

Alex Vandiverccecc8eb84aa
diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py
index 44393e566f0..93288b32192 100644
--- a/zerver/lib/markdown/__init__.py
+++ b/zerver/lib/markdown/__init__.py
@@ -1505,6 +1505,8 @@ class Emoji(markdown.inlinepatterns.Pattern):
if name in active_realm_emoji:
return make_realm_emoji(active_realm_emoji[name]["source_url"], orig_syntax)
elif name == "zulip":
+ # We explicitly do not use staticfiles to generate the URL
+ # for this, so that it is portable if exported.
return make_realm_emoji(
"/static/generated/emoji/images/emoji/unicode/zulip.png", orig_syntax
)