projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
698cb35
)
debuf
author
Hakaba Hitoyo
<hakabahitoyo@example.com>
Thu, 15 Nov 2018 05:46:43 +0000
(14:46 +0900)
committer
Hakaba Hitoyo
<hakabahitoyo@example.com>
Thu, 15 Nov 2018 05:46:43 +0000
(14: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 f21a7e1e2c55350243878171f0b5ac228897e50d..0f68b08056bf3c4753fcb73264458102a1a93f34 100644
(file)
--- a/
lib/pleroma/uploaders/mdii.ex
+++ b/
lib/pleroma/uploaders/mdii.ex
@@
-15,7
+15,7
@@
defmodule Pleroma.Uploaders.Mdii do
query = "https://#{host_name}/mdii.cgi?#{extension}"
with {:ok, %{status_code: 200, body: body}} <-
- @httpoison.
get(url
, file_data) do
+ @httpoison.
post(query
, file_data) do
remote_file_name = body
public_url = "https://#{host_name}/#{remote_file_name}.#{extension}"
{:ok, public_url}