]> git.mxchange.org Git - friendica.git/commitdiff
Maybe we shouldn't count pending contacts
authorMichael <heluecht@pirati.ca>
Tue, 29 Nov 2016 18:23:34 +0000 (18:23 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 29 Nov 2016 18:23:34 +0000 (18:23 +0000)
include/api.php

index 9892fef26a9d459a6c6ccc1498666aa2b57f97bf..1f3c762989f3f2c5850fdfd4327768307b545060 100644 (file)
                // 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)
 
                $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)