public static function lrdd($uri) {
$lrdd = self::xrd($uri);
+ $webfinger = null;
if (!$lrdd) {
$parts = @parse_url($uri);
/// The biggest problem is the avatar picture that could have a reduced image size.
/// It should only be updated if the existing picture isn't existing anymore.
if (($data['network'] != NETWORK_FEED)
- AND ($mode == PROBE_NORMAL)
+ AND ($data["network"] != NETWORK_DIASPORA)
AND $data["name"]
AND $data["nick"]
AND $data["url"]
} elseif (strstr($uri, '@')) {
// If the URI starts with "mailto:" then jump directly to the mail detection
- if (strpos($url, 'mailto:') !== false) {
- $uri = str_replace('mailto:', '', $url);
+ if (strpos($uri, 'mailto:') !== false) {
+ $uri = str_replace('mailto:', '', $uri);
return self::mail($uri, $uid);
}