"Contact\User" class created

This commit is contained in:
Michael 2020-08-04 04:47:02 +00:00
parent afa9adda6e
commit a7d75702cc
9 changed files with 330 additions and 299 deletions

View file

@ -111,7 +111,7 @@ class Session
$remote_contacts = DBA::select('contact', ['id', 'uid'], ['nurl' => Strings::normaliseLink($session->get('my_url')), 'rel' => [Contact::FOLLOWER, Contact::FRIEND], 'self' => false]);
while ($contact = DBA::fetch($remote_contacts)) {
if (($contact['uid'] == 0) || Contact::isBlockedByUser($contact['id'], $contact['uid'])) {
if (($contact['uid'] == 0) || Contact\User::isBlocked($contact['id'], $contact['uid'])) {
continue;
}