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

This commit is contained in:
Alex Vandiver 2023-02-07 21:34:43 +00:00 committed by Alex Vandiver
parent 6806bec2e9
commit ccecc8eb84

View File

@ -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
)