From: Hypolite Petovan Date: Thu, 13 Dec 2018 16:53:15 +0000 (-0500) Subject: Use Contact::isFollower instead X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c11194a2c3db729bb11e687db02c33159191ae4;p=friendica.git Use Contact::isFollower instead --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 5f040f63ec..0ebdcec004 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -338,13 +338,7 @@ class Profile } // Is the remote user already connected to that user? - if ($connect && remote_user() - && DBA::exists('contact', [ - 'uid' => $profile['uid'], - 'nurl' => Strings::normaliseLink(self::getMyURL()), - 'rel' => [Contact::SHARING, Contact::FRIEND] - ]) - ) { + if ($connect && Contact::isFollower(remote_user(), $profile['uid'])) { $connect = false; }