mejoras
This commit is contained in:
@@ -40,7 +40,7 @@ try {
|
||||
$offset = ($page - 1) * $limit;
|
||||
$sinceId = isset($_GET['since_id']) ? intval($_GET['since_id']) : null;
|
||||
$search = trim($_GET['search'] ?? '');
|
||||
$filter = trim($_GET['filter'] ?? ''); // e.g., HAS_MESSAGES
|
||||
$filter = trim($_GET['filter'] ?? ''); // e.g., HAS_conversations
|
||||
|
||||
$where = [];
|
||||
$params = [];
|
||||
@@ -55,9 +55,9 @@ try {
|
||||
$params[] = "%{$search}%";
|
||||
}
|
||||
|
||||
if ($filter === 'HAS_MESSAGES') {
|
||||
if ($filter === 'HAS_conversations') {
|
||||
$where[] = 'request_body LIKE ?';
|
||||
$params[] = '%"messages"%';
|
||||
$params[] = '%"conversations"%';
|
||||
}
|
||||
|
||||
$whereClause = empty($where) ? '' : 'WHERE ' . implode(' AND ', $where);
|
||||
|
||||
Reference in New Issue
Block a user