mirror of
https://github.com/friendica/friendica
synced 2025-04-26 04:30:11 +00:00
fix - pending contacts shouldn't be shown in contacts widgit and viewcontacts
This commit is contained in:
parent
8d2c74eb3c
commit
3474b40732
4 changed files with 14 additions and 8 deletions
|
@ -626,7 +626,7 @@ use \Friendica\Core\Config;
|
|||
// count friends
|
||||
$r = q("SELECT count(*) as `count` FROM `contact`
|
||||
WHERE `uid` = %d AND `rel` IN ( %d, %d )
|
||||
AND `self`=0 AND NOT `blocked` AND `hidden`=0",
|
||||
AND `self`=0 AND NOT `blocked` AND NOT `pending` AND `hidden`=0",
|
||||
intval($uinfo[0]['uid']),
|
||||
intval(CONTACT_IS_SHARING),
|
||||
intval(CONTACT_IS_FRIEND)
|
||||
|
@ -635,7 +635,7 @@ use \Friendica\Core\Config;
|
|||
|
||||
$r = q("SELECT count(*) as `count` FROM `contact`
|
||||
WHERE `uid` = %d AND `rel` IN ( %d, %d )
|
||||
AND `self`=0 AND NOT `blocked` AND `hidden`=0",
|
||||
AND `self`=0 AND NOT `blocked` AND NOT `pending` AND `hidden`=0",
|
||||
intval($uinfo[0]['uid']),
|
||||
intval(CONTACT_IS_FOLLOWER),
|
||||
intval(CONTACT_IS_FRIEND)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue