Improved detection for a local contact

This commit is contained in:
Michael 2021-07-19 04:15:57 +00:00
parent 424a85bb94
commit aa6313dee6
3 changed files with 24 additions and 3 deletions

View file

@ -333,7 +333,7 @@ class Probe
public static function uri($uri, $network = '', $uid = -1)
{
// Local profiles aren't probed via network
if (empty($network) && strpos($uri, DI::baseUrl()->getHostname())) {
if (empty($network) && Contact::isLocal($uri)) {
$data = self::localProbe($uri);
if (!empty($data)) {
return $data;