Merge branch 'bugfix/mdii-uploader' into 'develop'

Bugfix for MDII Uploader

See merge request pleroma/pleroma!822
This commit is contained in:
kaniini 2019-02-13 07:32:56 +00:00
commit 4bdb2d44c2
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def put_file(upload) do
query = "#{cgi}?#{extension}"
with {:ok, %{status: 200, body: body}} <-
@httpoison.post(query, file_data, adapter: [pool: :default]) do
@httpoison.post(query, file_data, [], adapter: [pool: :default]) do
remote_file_name = String.split(body) |> List.first()
public_url = "#{files}/#{remote_file_name}.#{extension}"
{:ok, {:url, public_url}}