diff options
author | hakabahitoyo <hakabahitoyo@example.com> | 2018-11-15 16:08:55 +0900 |
---|---|---|
committer | hakabahitoyo <hakabahitoyo@example.com> | 2018-11-15 16:08:55 +0900 |
commit | 4fbfacf5e129ad3f60e67f5ade2489f4bae48f56 (patch) | |
tree | 0ca4447a88a76b45c2c5788e67ff55f76fab0f7a /lib | |
parent | 8e707aba29921666a50878c39751cd53ee5cde7e (diff) | |
download | pleroma-4fbfacf5e129ad3f60e67f5ade2489f4bae48f56.tar.gz |
debug
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/uploaders/mdii.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/uploaders/mdii.ex b/lib/pleroma/uploaders/mdii.ex index c5deaf73f..f1f996fca 100644 --- a/lib/pleroma/uploaders/mdii.ex +++ b/lib/pleroma/uploaders/mdii.ex @@ -12,10 +12,10 @@ defmodule Pleroma.Uploaders.Mdii do File.rm!(path) extension = Regex.replace(~r/^image\//, content_type, "") - query = "https://#{host_name}/mdii.cgi?#{extension}" + query = "https://#{host_name}/mdii-post.cgi?#{extension}" with {:ok, %{status_code: 200, body: body}} <- @httpoison.post(query, file_data) do - remote_file_name = body + remote_file_name = List.first(String.split(body)) public_url = "https://#{host_name}/#{remote_file_name}.#{extension}" {:ok, public_url} end |