Issue 2772: Posts from pending contacts should be displayed as well.
This commit is contained in:
parent
1e40cdd1d4
commit
3de862712d
7 changed files with 24 additions and 24 deletions
|
|
@ -371,7 +371,7 @@ function profile_sidebar($profile, $block = 0) {
|
|||
if(count($r))
|
||||
$updated = date("c", strtotime($r[0]['updated']));
|
||||
|
||||
$r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 AND `archive` = 0
|
||||
$r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND NOT `self` AND NOT `blocked` AND NOT `hidden` AND NOT `archive`
|
||||
AND `network` IN ('%s', '%s', '%s', '')",
|
||||
intval($profile['uid']),
|
||||
dbesc(NETWORK_DFRN),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue