fix: meilisearch using different logic when searching by uploader

If the uploader is searching for themselves, then include their anon torrents. This is how the SQL search works.
This commit is contained in:
Roardom
2025-08-25 11:35:25 +00:00
parent 70501c6bfd
commit 6c616beb1f

View File

@@ -448,7 +448,10 @@ readonly class TorrentSearchFiltersDTO
$filters[] = 'user.username = '.json_encode($this->uploader);
if (!$group->is_modo) {
$filters[] = 'anon = false';
$filters[] = [
'anon = false',
'user.username = '.json_encode($this->user->username),
];
}
}