mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
The query condition for active users are unified
This commit is contained in:
parent
692a633dc8
commit
7e73283949
19 changed files with 33 additions and 37 deletions
|
@ -940,7 +940,7 @@ class Profile
|
|||
if (!empty($search)) {
|
||||
$publish = (DI::config()->get('system', 'publish_all') ? '' : "AND `publish` ");
|
||||
$searchTerm = '%' . $search . '%';
|
||||
$condition = ["NOT `blocked` AND NOT `account_removed`
|
||||
$condition = ["`verified` AND NOT `blocked` AND NOT `account_removed` AND NOT `account_expired`
|
||||
$publish
|
||||
AND ((`name` LIKE ?) OR
|
||||
(`nickname` LIKE ?) OR
|
||||
|
@ -953,7 +953,7 @@ class Profile
|
|||
$searchTerm, $searchTerm, $searchTerm, $searchTerm,
|
||||
$searchTerm, $searchTerm, $searchTerm, $searchTerm];
|
||||
} else {
|
||||
$condition = ['blocked' => false, 'account_removed' => false];
|
||||
$condition = ['verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false];
|
||||
if (!DI::config()->get('system', 'publish_all')) {
|
||||
$condition['publish'] = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue