Use Contact::isFollower instead
This commit is contained in:
parent
096093766a
commit
7c11194a2c
|
@ -338,13 +338,7 @@ class Profile
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is the remote user already connected to that user?
|
// Is the remote user already connected to that user?
|
||||||
if ($connect && remote_user()
|
if ($connect && Contact::isFollower(remote_user(), $profile['uid'])) {
|
||||||
&& DBA::exists('contact', [
|
|
||||||
'uid' => $profile['uid'],
|
|
||||||
'nurl' => Strings::normaliseLink(self::getMyURL()),
|
|
||||||
'rel' => [Contact::SHARING, Contact::FRIEND]
|
|
||||||
])
|
|
||||||
) {
|
|
||||||
$connect = false;
|
$connect = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue