mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 02:05:12 +00:00
Formatting
This commit is contained in:
parent
fa63f1b55b
commit
9887cdf9be
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue