Browse Source

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

tags/v1.1.4
Ekaterina Vaartis 5 years ago
parent
commit
98d4b3de53
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      lib/mix/tasks/pleroma/emoji.ex

+ 7
- 1
lib/mix/tasks/pleroma/emoji.ex View File

@@ -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


Loading…
Cancel
Save