projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0534463
)
bugfix mdii uploader
author
hakabahitoyo
<hakabahitoyo@example.com>
Wed, 13 Feb 2019 06:46:42 +0000
(15:46 +0900)
committer
hakabahitoyo
<hakabahitoyo@example.com>
Wed, 13 Feb 2019 06:46:42 +0000
(15:46 +0900)
lib/pleroma/uploaders/mdii.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/uploaders/mdii.ex
b/lib/pleroma/uploaders/mdii.ex
index 320b07abde423dc597cd0585161002223854c514..190ed9f3ac77e93fa5494597deb6bc113e96b887 100644
(file)
--- a/
lib/pleroma/uploaders/mdii.ex
+++ b/
lib/pleroma/uploaders/mdii.ex
@@
-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}}