From d6c25dc63c9189c9e56cf5a32edd9d568019e8da Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 5 Aug 2021 11:37:04 +0000 Subject: [PATCH] Handle profile page detection without a type --- src/Network/Probe.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 1c0ecc3007..c07cc7e605 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1412,6 +1412,8 @@ class Probe $data["guid"] = $link["href"]; } elseif (($link["rel"] == "http://webfinger.net/rel/profile-page") && (($link["type"] ?? "") == "text/html") && !empty($link["href"])) { $data["url"] = $link["href"]; + } elseif (($link["rel"] == "http://webfinger.net/rel/profile-page") && empty($link["type"]) && !empty($link["href"])) { + $profile_url = $link["href"]; } elseif (($link["rel"] == ActivityNamespace::FEED) && !empty($link["href"])) { $data["poll"] = $link["href"]; } elseif (($link["rel"] == ActivityNamespace::POCO) && !empty($link["href"])) { @@ -1428,6 +1430,10 @@ class Probe } } + if (empty($data["url"]) && !empty($profile_url)) { + $data["url"] = $profile_url; + } + if (empty($data["url"]) || empty($hcard_url)) { return []; }