From: Michael Date: Tue, 29 Nov 2016 18:23:34 +0000 (+0000) Subject: Maybe we shouldn't count pending contacts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b2302f62907a869c545f919c444f1aaeee095265;p=friendica.git Maybe we shouldn't count pending contacts --- diff --git a/include/api.php b/include/api.php index 9892fef26a..1f3c762989 100644 --- a/include/api.php +++ b/include/api.php @@ -623,7 +623,7 @@ // count friends $r = q("SELECT count(*) as `count` FROM `contact` WHERE `uid` = %d AND `rel` IN ( %d, %d ) - AND `self`=0 AND (NOT `blocked` OR `pending`) AND `hidden`=0", + AND `self`=0 AND NOT `blocked` AND `hidden`=0", intval($uinfo[0]['uid']), intval(CONTACT_IS_SHARING), intval(CONTACT_IS_FRIEND) @@ -632,7 +632,7 @@ $r = q("SELECT count(*) as `count` FROM `contact` WHERE `uid` = %d AND `rel` IN ( %d, %d ) - AND `self`=0 AND (NOT `blocked` OR `pending`) AND `hidden`=0", + AND `self`=0 AND NOT `blocked` AND `hidden`=0", intval($uinfo[0]['uid']), intval(CONTACT_IS_FOLLOWER), intval(CONTACT_IS_FRIEND)