bugfix mdii uploader
authorhakabahitoyo <hakabahitoyo@example.com>
Wed, 13 Feb 2019 06:46:42 +0000 (15:46 +0900)
committerhakabahitoyo <hakabahitoyo@example.com>
Wed, 13 Feb 2019 06:46:42 +0000 (15:46 +0900)
lib/pleroma/uploaders/mdii.ex

index 320b07abde423dc597cd0585161002223854c514..190ed9f3ac77e93fa5494597deb6bc113e96b887 100644 (file)
@@ -25,7 +25,7 @@ defmodule Pleroma.Uploaders.MDII 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}}