Clean out old emojis on reload
This commit is contained in:
parent
2d4b8f3d20
commit
b0ecd412f5
@ -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 New Issue
Block a user