filter torrent_list support search

This commit is contained in:
xiaomlove
2022-11-10 01:52:41 +08:00
parent 6479f0a799
commit c54993ee7d
3 changed files with 10 additions and 8 deletions
+1 -2
View File
@@ -300,9 +300,8 @@ class Torrent extends NexusModel
return $result;
}
public function getHrAttribute(): string
public function getHrRealAttribute(): string
{
// $hrMode = Setting::get('hr.mode');
$searchBoxId = $this->basic_category->mode ?? 0;
if ($searchBoxId == 0) {
do_log(sprintf('[INVALID_CATEGORY], Torrent: %s, category: %s invalid', $this->id, $this->category), 'error');