From ccecc8eb84aaa607e3d262b2f9d7a58f02db8784 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Tue, 7 Feb 2023 21:34:43 +0000 Subject: [PATCH] markdown: Comment why we do not hash or use STATIC_URL for :zulip:. --- zerver/lib/markdown/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py index 44393e566f..93288b3219 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 )