Formatting

This commit is contained in:
Mark Felder 2021-01-10 09:03:42 -06:00
parent fa63f1b55b
commit 9887cdf9be

View File

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