mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-05 14:58:40 +00:00
URI.authority is deprecated
This commit is contained in:
parent
04fc4eddaa
commit
579561e97b
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ defmodule Pleroma.Web.RichMedia.Helpers do
|
||||||
|> parse_uri(page_url)
|
|> parse_uri(page_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp validate_page_url(%URI{host: host, scheme: "https", authority: authority})
|
defp validate_page_url(%URI{host: host, scheme: "https"}) do
|
||||||
when is_binary(authority) do
|
|
||||||
cond do
|
cond do
|
||||||
host in @config_impl.get([:rich_media, :ignore_hosts], []) ->
|
host in @config_impl.get([:rich_media, :ignore_hosts], []) ->
|
||||||
:error
|
:error
|
||||||
|
|
Loading…
Reference in a new issue