Make the emoji template configurable
This commit is contained in:
@@ -219,5 +219,11 @@ ME = {
|
||||
"publicKey": KEY.to_dict(),
|
||||
}
|
||||
|
||||
# TODO(tsileo): read the config from the YAML if set
|
||||
EMOJIS = "😺 😸 😹 😻 😼 😽 🙀 😿 😾"
|
||||
if conf.get("emojis"):
|
||||
EMOJIS = conf["emojis"]
|
||||
|
||||
# Emoji template for the FE
|
||||
EMOJI_TPL = '<img src="https://cdn.jsdelivr.net/npm/twemoji@12.0.0/2/svg/{filename}.svg" alt="{raw}" class="emoji">'
|
||||
if conf.get("emoji_tpl"):
|
||||
EMOJI_TPL = conf["emoji_tpl"]
|
||||
|
Reference in New Issue
Block a user