URI.authority is deprecated

This commit is contained in:
Mark Felder 2024-02-04 23:40:11 -05:00
parent 04fc4eddaa
commit 579561e97b

View File

@ -27,8 +27,7 @@ defmodule Pleroma.Web.RichMedia.Helpers do
|> parse_uri(page_url)
end
defp validate_page_url(%URI{host: host, scheme: "https", authority: authority})
when is_binary(authority) do
defp validate_page_url(%URI{host: host, scheme: "https"}) do
cond do
host in @config_impl.get([:rich_media, :ignore_hosts], []) ->
:error