"viewcontacts" hadn't displayed the AP contacts

This commit is contained in:
Michael 2018-11-21 08:50:43 +00:00
parent a76c00de66
commit 85529ed8ff
1 changed files with 4 additions and 2 deletions

View File

@ -68,8 +68,9 @@ function viewcontacts_content(App $a)
$r = q("SELECT COUNT(*) AS `total` FROM `contact`
WHERE `uid` = %d AND NOT `blocked` AND NOT `pending`
AND NOT `hidden` AND NOT `archive`
AND `network` IN ('%s', '%s', '%s')",
AND `network` IN ('%s', '%s', '%s', '%s')",
intval($a->profile['uid']),
DBA::escape(Protocol::ACTIVITYPUB),
DBA::escape(Protocol::DFRN),
DBA::escape(Protocol::DIASPORA),
DBA::escape(Protocol::OSTATUS)
@ -82,9 +83,10 @@ function viewcontacts_content(App $a)
$r = q("SELECT * FROM `contact`
WHERE `uid` = %d AND NOT `blocked` AND NOT `pending`
AND NOT `hidden` AND NOT `archive`
AND `network` IN ('%s', '%s', '%s')
AND `network` IN ('%s', '%s', '%s', '%s')
ORDER BY `name` ASC LIMIT %d, %d",
intval($a->profile['uid']),
DBA::escape(Protocol::ACTIVITYPUB),
DBA::escape(Protocol::DFRN),
DBA::escape(Protocol::DIASPORA),
DBA::escape(Protocol::OSTATUS),