logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 579561e97ba83183022d4bd2658522be6b6ae202
parent 04fc4eddaa534185d9784351e70f59f30bc1476f
Author: Mark Felder <feld@feld.me>
Date:   Sun,  4 Feb 2024 23:40:11 -0500

URI.authority is deprecated

Diffstat:

Mlib/pleroma/web/rich_media/helpers.ex3+--
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 @@ -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