Clean out old emojis on reload

This commit is contained in:
Ekaterina Vaartis 2019-08-12 18:28:05 +03:00
parent 2d4b8f3d20
commit b0ecd412f5

View File

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