X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FUser.php;h=2131406d4a5f8cf2be7432c66b57f2839936224c;hb=8c99d3acc1b65bd7645d69f430d5fd9604d6b3b5;hp=38a22f70f9a72e944d1a0eb18c7c94d43afc091b;hpb=bd9a4693926b5028368e8f71028db16c82bb65d1;p=friendica.git diff --git a/src/Model/User.php b/src/Model/User.php index 38a22f70f9..2131406d4a 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; }