forked from AkkomaGang/akkoma
Merge pull request 'Reload emoji when using mix pleroma.emoji gen-pack and get-packs' (#563) from norm/akkoma:emoji-reload into develop
Reviewed-on: AkkomaGang/akkoma#563
This commit is contained in:
commit
7bb41bffb3
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,7 @@ def run(["get-packs" | args]) do
|
||||||
}
|
}
|
||||||
|
|
||||||
File.write!(Path.join(pack_path, "pack.json"), Jason.encode!(pack_json, pretty: true))
|
File.write!(Path.join(pack_path, "pack.json"), Jason.encode!(pack_json, pretty: true))
|
||||||
|
Pleroma.Emoji.reload()
|
||||||
else
|
else
|
||||||
IO.puts(IO.ANSI.format([:bright, :red, "No pack named \"#{pack_name}\" found"]))
|
IO.puts(IO.ANSI.format([:bright, :red, "No pack named \"#{pack_name}\" found"]))
|
||||||
end
|
end
|
||||||
|
@ -235,6 +236,7 @@ def run(["gen-pack" | args]) do
|
||||||
|
|
||||||
IO.puts("#{pack_file} has been created with the #{name} pack")
|
IO.puts("#{pack_file} has been created with the #{name} pack")
|
||||||
end
|
end
|
||||||
|
Pleroma.Emoji.reload()
|
||||||
end
|
end
|
||||||
|
|
||||||
def run(["reload"]) do
|
def run(["reload"]) do
|
||||||
|
|
Loading…
Reference in a new issue