Check for media proxy base_url, not Upload base_url
authorMark Felder <feld@FreeBSD.org>
Thu, 11 Jun 2020 16:05:22 +0000 (11:05 -0500)
committerMark Felder <feld@FreeBSD.org>
Thu, 11 Jun 2020 16:05:22 +0000 (11:05 -0500)
lib/pleroma/plugs/http_security_plug.ex

index 620408d0fbff187dac8466da86965d877cb27ffd..1420a96113e92a777df09ef5263c317c032a7b69 100644 (file)
@@ -114,7 +114,7 @@ defmodule Pleroma.Plugs.HTTPSecurityPlug do
       end)
 
     media_proxy_base_url =
-      if Config.get([Pleroma.Upload, :base_url]),
+      if Config.get([:media_proxy, :base_url]),
         do: URI.parse(Config.get([:media_proxy, :base_url])).host
 
     upload_base_url =