From 579561e97ba83183022d4bd2658522be6b6ae202 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Sun, 4 Feb 2024 23:40:11 -0500 Subject: [PATCH] URI.authority is deprecated --- lib/pleroma/web/rich_media/helpers.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pleroma/web/rich_media/helpers.ex b/lib/pleroma/web/rich_media/helpers.ex index ee12a9dfb..9d6b8a38b 100644 --- a/lib/pleroma/web/rich_media/helpers.ex +++ b/lib/pleroma/web/rich_media/helpers.ex @@ -27,8 +27,7 @@ defp validate_page_url(page_url) when is_binary(page_url) 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