mirror of
https://github.com/BillyOutlast/UNIT3D.git
synced 2026-02-04 03:01:20 +01:00
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:
@@ -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),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user