[#2497] Fixed merge issue.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 5 Jul 2020 16:02:43 +0000 (19:02 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 5 Jul 2020 16:02:43 +0000 (19:02 +0300)
lib/pleroma/web/media_proxy/media_proxy_controller.ex

index 0f4575e2f20d0782ade5a3183074ab57d491efd5..583c177f2e609eee9b92d01bc114009723d121d5 100644 (file)
@@ -12,8 +12,8 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyController do
 
   def remote(conn, %{"sig" => sig64, "url" => url64}) do
     with {_, true} <- {:enabled, MediaProxy.enabled?()},
-         {_, false} <- {:in_banned_urls, MediaProxy.in_banned_urls(url)},
          {:ok, url} <- MediaProxy.decode_url(sig64, url64),
+         {_, false} <- {:in_banned_urls, MediaProxy.in_banned_urls(url)},
          :ok <- MediaProxy.verify_request_path_and_url(conn, url) do
       proxy_opts = Config.get([:media_proxy, :proxy_opts], [])
       ReverseProxy.call(conn, url, proxy_opts)