Don't display pending requests
This commit is contained in:
parent
89efa73195
commit
cfd09663e7
4 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ class Ids extends ContactEndpoint
|
|||
if ($cid == Contact::getPublicIdByUserId($uid)) {
|
||||
$params = ['order' => ['pid' => true], 'limit' => $count];
|
||||
|
||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
||||
$condition = ['uid' => $uid, 'self' => false, 'pending' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
||||
|
||||
$total_count = (int)DBA::count('contact', $condition);
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class Lists extends ContactEndpoint
|
|||
if ($cid == Contact::getPublicIdByUserId($uid)) {
|
||||
$params = ['order' => ['pid' => true], 'limit' => $count];
|
||||
|
||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
||||
$condition = ['uid' => $uid, 'self' => false, 'pending' => false, 'rel' => [Contact::FOLLOWER, Contact::FRIEND]];
|
||||
|
||||
$total_count = (int)DBA::count('contact', $condition);
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class Ids extends ContactEndpoint
|
|||
if ($cid == Contact::getPublicIdByUserId($uid)) {
|
||||
$params = ['order' => ['pid' => true], 'limit' => $count];
|
||||
|
||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||
$condition = ['uid' => $uid, 'self' => false, 'pending' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||
|
||||
$total_count = (int)DBA::count('contact', $condition);
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class Lists extends ContactEndpoint
|
|||
if ($cid == Contact::getPublicIdByUserId($uid)) {
|
||||
$params = ['order' => ['pid' => true], 'limit' => $count];
|
||||
|
||||
$condition = ['uid' => $uid, 'self' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||
$condition = ['uid' => $uid, 'self' => false, 'pending' => false, 'rel' => [Contact::SHARING, Contact::FRIEND]];
|
||||
|
||||
$total_count = (int)DBA::count('contact', $condition);
|
||||
|
||||
|
|
Loading…
Reference in a new issue