mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-26 17:15:44 +01:00
debuf
This commit is contained in:
parent
698cb3587c
commit
ebe658c169
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user