Add default empty whitelist

This commit is contained in:
FloatingGhost 2023-08-01 16:13:03 +01:00
parent 8b52ad0bef
commit 4fa597d569

View file

@ -76,7 +76,7 @@ defmodule Pleroma.Web.MediaProxy do
mediaproxy_whitelist_domains = mediaproxy_whitelist_domains =
[:media_proxy, :whitelist] [:media_proxy, :whitelist]
|> Config.get() |> Config.get([])
|> Kernel.++(["#{Upload.base_url()}"]) |> Kernel.++(["#{Upload.base_url()}"])
|> Enum.map(&maybe_get_domain_from_url/1) |> Enum.map(&maybe_get_domain_from_url/1)