Skip to content
Snippets Groups Projects
Commit 98d4b3de authored by vaartis's avatar vaartis
Browse files

Treat the manifest path as a file if it doesn't start with http

parent aaaa4285
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,13 @@ defmodule Mix.Tasks.Pleroma.Emoji do
end
defp fetch_manifest(from) do
Tesla.get!(from).body |> Poison.decode!()
Poison.decode!(
if String.starts_with?(from, "http") do
Tesla.get!(from).body
else
File.read!(from)
end
)
end
defp parse_global_opts(args) do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment