fix details page other version hr img

This commit is contained in:
xiaomlove
2022-10-01 18:26:18 +08:00
parent b234228264
commit ee00be3840
4 changed files with 51 additions and 35 deletions

View File

@@ -134,6 +134,12 @@ class HitAndRun extends NexusModel
return apply_filter("nexus_setting_get", $default, $name, ['mode' => $searchBoxId]);
}
public static function diffInSection(): bool
{
$enableSpecialSection = Setting::get('main.spsct') == 'yes';
return $enableSpecialSection && apply_filter("hit_and_run_diff_in_section", false);
}
public function torrent(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Torrent::class, 'torrent_id');