From: Ekaterina Vaartis Date: Mon, 12 Aug 2019 15:28:05 +0000 (+0300) Subject: Clean out old emojis on reload X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b0ecd412f5c499773cdc462c50d6c8104a819550;p=akkoma Clean out old emojis on reload --- diff --git a/lib/pleroma/emoji.ex b/lib/pleroma/emoji.ex index 2a9f5f804..f56b26da2 100644 --- a/lib/pleroma/emoji.ex +++ b/lib/pleroma/emoji.ex @@ -122,6 +122,9 @@ defmodule Pleroma.Emoji do fn pack -> load_pack(Path.join(emoji_dir_path, pack), emoji_groups) end ) + # Clear out old emojis + :ets.delete_all_objects(@ets) + true = :ets.insert(@ets, emojis) end