Handle profile page detection without a type
This commit is contained in:
parent
eec6cdf01b
commit
d6c25dc63c
|
@ -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 [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user