Allow search for only locally published contacts
This commit is contained in:
parent
968122337d
commit
dfc1b1e7a5
|
@ -2989,7 +2989,8 @@ class Contact
|
||||||
$search .= '%';
|
$search .= '%';
|
||||||
|
|
||||||
$results = DBA::p("SELECT * FROM `contact`
|
$results = DBA::p("SELECT * FROM `contact`
|
||||||
WHERE NOT `unsearchable` AND `network` IN (?, ?, ?, ?) AND
|
WHERE (NOT `unsearchable` OR `nurl` IN (SELECT `nurl` FROM `owner-view` where `publish` OR `net-publish`))
|
||||||
|
AND `network` IN (?, ?, ?, ?) AND
|
||||||
NOT `failed` AND `uid` = ? AND
|
NOT `failed` AND `uid` = ? AND
|
||||||
(`addr` LIKE ? OR `name` LIKE ? OR `nick` LIKE ?) $extra_sql
|
(`addr` LIKE ? OR `name` LIKE ? OR `nick` LIKE ?) $extra_sql
|
||||||
ORDER BY `nurl` DESC LIMIT 1000",
|
ORDER BY `nurl` DESC LIMIT 1000",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user