From e28c110eba5a4c8c5b4b3d2f552a8706db511c51 Mon Sep 17 00:00:00 2001 From: href Date: Wed, 22 Nov 2017 19:14:03 +0100 Subject: [PATCH] mandatory typo fix... --- lib/pleroma/web/media_proxy/controller.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pleroma/web/media_proxy/controller.ex b/lib/pleroma/web/media_proxy/controller.ex index 84c6e9c8b..fece7cf45 100644 --- a/lib/pleroma/web/media_proxy/controller.ex +++ b/lib/pleroma/web/media_proxy/controller.ex @@ -3,7 +3,7 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyController do require Logger def remote(conn, %{"sig" => sig, "url" => url}) do - {:ok, url} = Pleroma.MediaProxy.decode_url(sig, url) + {:ok, url} = Pleroma.Web.MediaProxy.decode_url(sig, url) url = url |> URI.encode() case proxy_request(url) do {:ok, content_type, body} -> @@ -19,7 +19,6 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyController do end defp proxy_request(link) do - instance = ) headers = [{"user-agent", "Pleroma/MediaProxy; #{Pleroma.Web.base_url()} <#{Application.get_env(:pleroma, :instance)[:email]}>"}] options = [:insecure, {:follow_redirect, true}] case :hackney.request(:get, link, headers, "", options) do -- 2.45.2