From: Michael Date: Mon, 12 Dec 2022 02:33:57 +0000 (+0000) Subject: Don't display pending requests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cfd09663e7a9e263650d991c1ff2773f752e4f72;p=friendica.git Don't display pending requests --- diff --git a/src/Module/Api/Twitter/Followers/Ids.php b/src/Module/Api/Twitter/Followers/Ids.php index 6f89b9ac1f..2a810849be 100644 --- a/src/Module/Api/Twitter/Followers/Ids.php +++ b/src/Module/Api/Twitter/Followers/Ids.php @@ -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); diff --git a/src/Module/Api/Twitter/Followers/Lists.php b/src/Module/Api/Twitter/Followers/Lists.php index 68bc77b987..e969004cb7 100644 --- a/src/Module/Api/Twitter/Followers/Lists.php +++ b/src/Module/Api/Twitter/Followers/Lists.php @@ -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); diff --git a/src/Module/Api/Twitter/Friends/Ids.php b/src/Module/Api/Twitter/Friends/Ids.php index 1d15695d9d..d12e082cfa 100644 --- a/src/Module/Api/Twitter/Friends/Ids.php +++ b/src/Module/Api/Twitter/Friends/Ids.php @@ -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); diff --git a/src/Module/Api/Twitter/Friends/Lists.php b/src/Module/Api/Twitter/Friends/Lists.php index 6a13dbef99..11c9c4fc39 100644 --- a/src/Module/Api/Twitter/Friends/Lists.php +++ b/src/Module/Api/Twitter/Friends/Lists.php @@ -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);