1
0
Fork 0
forked from mirrors/akkoma
This commit is contained in:
href 2019-01-30 21:08:41 +01:00
parent 4aff4efa8d
commit 5ea0397e2d
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
3 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@ def enabled_hackney_pools() do
[]
end ++
if Pleroma.Config.get([Pleroma.Uploader, :proxy_remote]) do
[:uploadproxy]
[:upload]
else
[]
end

View file

@ -28,7 +28,7 @@ def parse(url) do
defp parse_url(url) do
try do
{:ok, %Tesla.Env{body: html}} = Pleroma.HTTP.get(url, [], pool: :media)
{:ok, %Tesla.Env{body: html}} = Pleroma.HTTP.get(url, [], adapter: [pool: :media])
html |> maybe_parse() |> get_parsed_data()
rescue

View file

@ -20,7 +20,7 @@ defp get_oembed_url(nodes) do
end
defp get_oembed_data(url) do
{:ok, %Tesla.Env{body: json}} = Pleroma.HTTP.get(url, [], pool: :media)
{:ok, %Tesla.Env{body: json}} = Pleroma.HTTP.get(url, [], adapter: [pool: :media])
{:ok, data} = Jason.decode(json)