X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FUser.php;h=029613b17b0b692e19e3301fcd6d2b841d54640e;hb=8bdfdc7d52e149edb711c6d238c1f7593e237e83;hp=38a22f70f9a72e944d1a0eb18c7c94d43afc091b;hpb=b2bc911eb2afb57e623cf4f55142c98f94d0fc6d;p=friendica.git diff --git a/src/Model/User.php b/src/Model/User.php index 38a22f70f9..029613b17b 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -312,8 +312,8 @@ class User */ public static function getIdForURL(string $url) { - // Avoid any database requests when the hostname isn't even part of the url. - if (!strpos($url, DI::baseUrl()->getHostname())) { + // Avoid database queries when the local node hostname isn't even part of the url. + if (!Contact::isLocal($url)) { return 0; } @@ -1123,6 +1123,8 @@ class User Photo::update(['profile' => 1], ['resource-id' => $resource_id]); } } + + Contact::updateSelfFromUserID($uid, true); } Hook::callAll('register_account', $uid);