projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
streamer: use direct object for filter checks when there is no valid child object...
[akkoma]
/
lib
/
pleroma
/
emoji.ex
diff --git
a/lib/pleroma/emoji.ex
b/lib/pleroma/emoji.ex
index b246bfbe672c417036a15ea858ba3d6a27dd0cd2..bafad2ae9fa915a947ed24fae8cf2f8c57e6e3a2 100644
(file)
--- a/
lib/pleroma/emoji.ex
+++ b/
lib/pleroma/emoji.ex
@@
-62,6
+62,9
@@
defmodule Pleroma.Emoji do
:ets.tab2list(@ets)
end
:ets.tab2list(@ets)
end
+ @doc "Clear out old emojis"
+ def clear_all, do: :ets.delete_all_objects(@ets)
+
@doc false
def init(_) do
@ets = :ets.new(@ets, @ets_options)
@doc false
def init(_) do
@ets = :ets.new(@ets, @ets_options)