From 7c11194a2c3db729bb11e687db02c33159191ae4 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 13 Dec 2018 11:53:15 -0500 Subject: [PATCH] Use Contact::isFollower instead --- src/Model/Profile.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; }