mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Simply use "unsearchable" (and ensure it is updated for local users)
This commit is contained in:
parent
4c81a7ab91
commit
74222532dc
2 changed files with 13 additions and 2 deletions
|
@ -3535,6 +3535,7 @@ class Contact
|
|||
'server-blocked' => false,
|
||||
'failed' => false,
|
||||
'deleted' => false,
|
||||
'unsearchable' => false,
|
||||
'uid' => $uid
|
||||
];
|
||||
|
||||
|
@ -3560,8 +3561,7 @@ class Contact
|
|||
}
|
||||
|
||||
$condition = DBA::mergeConditions($condition,
|
||||
["(NOT `unsearchable` OR `nurl` IN (SELECT `nurl` FROM `owner-view` WHERE `publish` OR `net-publish`))
|
||||
AND (`addr` LIKE ? OR `name` LIKE ? OR `nick` LIKE ?)", $search, $search, $search]);
|
||||
["(`addr` LIKE ? OR `name` LIKE ? OR `nick` LIKE ?)", $search, $search, $search]);
|
||||
|
||||
return DBA::selectToArray('account-user-view', [], $condition, $params);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue