mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-23 13:27:34 -04:00
MediaProxy: :whitelist config fallback to []
This commit is contained in:
parent
5e9fe8149a
commit
6e866417ae
1 changed files with 1 additions and 2 deletions
|
@ -75,8 +75,7 @@ defmodule Pleroma.Web.MediaProxy do
|
|||
%{host: domain} = URI.parse(url)
|
||||
|
||||
mediaproxy_whitelist_domains =
|
||||
[:media_proxy, :whitelist]
|
||||
|> Config.get()
|
||||
Config.get([:media_proxy, :whitelist], [])
|
||||
|> Kernel.++(["#{Upload.base_url()}"])
|
||||
|> Enum.map(&maybe_get_domain_from_url/1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue