diff options
author | Lain Soykaf <lain@lain.com> | 2024-05-22 15:12:29 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2024-05-22 15:12:29 +0400 |
commit | 84bb854056e406d5235dd442c28127891a8a8a86 (patch) | |
tree | d909324eedc85e03eb8d6fe1b69b4f80fbf1b21f | |
parent | 91c93ce3cd62a916c7d367979473f94e36cf1873 (diff) | |
download | pleroma-84bb854056e406d5235dd442c28127891a8a8a86.tar.gz pleroma-84bb854056e406d5235dd442c28127891a8a8a86.zip |
Webfinger: Allow managing account for subdomain
-rw-r--r-- | lib/pleroma/web/web_finger.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/web_finger.ex b/lib/pleroma/web/web_finger.ex index a84a4351b..e149d9247 100644 --- 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, acct_host == request_host} do + {_, true} <- {:hosts_match_or_subdomain, String.ends_with?(request_host, acct_host)} do {:ok, data} else _ -> {:error, {:webfinger_invalid, url, data}} |