Skip to content
Snippets Groups Projects
Commit 4bdb2d44 authored by kaniini's avatar kaniini
Browse files

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

Bugfix for MDII Uploader

See merge request pleroma/pleroma!822
parents 0534463c b7bc6662
No related branches found
No related tags found
No related merge requests found
......@@ -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}}
......
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