projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix admin api.
[akkoma]
/
lib
/
pleroma
/
emoji.ex
diff --git
a/lib/pleroma/emoji.ex
b/lib/pleroma/emoji.ex
index cc9713b5349a22951121a9b1983b787dbc753e18..0a5e1d5ce1711fc42e86e0456c62d3aa483b51b2 100644
(file)
--- a/
lib/pleroma/emoji.ex
+++ b/
lib/pleroma/emoji.ex
@@
-41,11
+41,12
@@
defmodule Pleroma.Emoji do
@doc false
def init(_) do
@ets = :ets.new(@ets, @ets_options)
@doc false
def init(_) do
@ets = :ets.new(@ets, @ets_options)
- {:ok, nil, {:continue, :reload}}
+ GenServer.cast(self(), :reload)
+ {:ok, nil}
end
@doc false
end
@doc false
- def handle_c
ontinue
(:reload, state) do
+ def handle_c
ast
(:reload, state) do
load()
{:noreply, state}
end
load()
{:noreply, state}
end
@@
-152,7
+153,7
@@
defmodule Pleroma.Emoji do
end)
end
end)
end
- defp load_finmoji(_), do:
:ok
+ defp load_finmoji(_), do:
[]
defp load_from_file(file) do
if File.exists?(file) do
defp load_from_file(file) do
if File.exists?(file) do