Fix emoji caching

This commit is contained in:
Thomas Sileo
2019-08-21 00:28:24 +02:00
parent 6d0d1d6480
commit 6592841558
2 changed files with 10 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ def replace_custom_emojis(content, note):
for tag in note.get("tag", []):
if tag.get("type") == "Emoji":
# try:
idx[tag["name"]] = _get_file_url(tag["icon"]["url"], None, Kind.EMOJI)
idx[tag["name"]] = _get_file_url(tag["icon"]["url"], 25, Kind.EMOJI)
for emoji_name, emoji_url in idx.items():
content = content.replace(