mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 13:58:41 +00:00
Clean out old emojis on reload
This commit is contained in:
parent
2d4b8f3d20
commit
b0ecd412f5
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ defmodule Pleroma.Emoji do
|
||||||
fn pack -> load_pack(Path.join(emoji_dir_path, pack), emoji_groups) end
|
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)
|
true = :ets.insert(@ets, emojis)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue