logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 9887cdf9be049ca12ea6ba45d38f9072de1b0fc0
parent fa63f1b55bad4da8d1c8c51e980109ad5352f71e
Author: Mark Felder <feld@feld.me>
Date:   Sun, 10 Jan 2021 09:03:42 -0600

Formatting

Diffstat:

Mlib/pleroma/web/media_proxy.ex16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/pleroma/web/media_proxy.ex b/lib/pleroma/web/media_proxy.ex @@ -79,14 +79,14 @@ defmodule Pleroma.Web.MediaProxy do |> Config.get() |> Enum.map(&maybe_get_domain_from_url/1) - whitelist_domains = - base_url = Upload.base_url() - if Web.base_url() == base_url do - mediaproxy_whitelist_domains - else - %{host: base_domain} = URI.parse(base_url) - [base_domain | mediaproxy_whitelist_domains] - end + whitelist_domains = base_url = Upload.base_url() + + if Web.base_url() == base_url do + mediaproxy_whitelist_domains + else + %{host: base_domain} = URI.parse(base_url) + [base_domain | mediaproxy_whitelist_domains] + end domain in whitelist_domains end