commit: 1f2f7e044d1be1e56789ce01ce4e54dd86a74f36
parent c8e5a1f6b04721ff965e79448a7bed460f26135f
Author: marcin mikołajczak <git@mkljczk.pl>
Date: Wed, 22 May 2024 15:52:10 +0200
Revert "Webfinger: Allow managing account for subdomain"
This reverts commit 84bb854056e406d5235dd442c28127891a8a8a86.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/web/web_finger.ex b/lib/pleroma/web/web_finger.ex
@@ -230,7 +230,7 @@ defmodule Pleroma.Web.WebFinger do
defp validate_webfinger(url, %{"subject" => "acct:" <> acct} = data) do
with %URI{host: request_host} <- URI.parse(url),
[_name, acct_host] <- String.split(acct, "@"),
- {_, true} <- {:hosts_match_or_subdomain, String.ends_with?(request_host, acct_host)} do
+ {_, true} <- {:hosts_match, acct_host == request_host} do
{:ok, data}
else
_ -> {:error, {:webfinger_invalid, url, data}}