Hotfix for Layout 2 regarding display of sfw variable and other minor improvements and or changes
This commit is contained in:
@@ -74,9 +74,14 @@ class CategoryController extends Controller
|
||||
return redirect()->back()->with('error', 'Category is empty.');
|
||||
}
|
||||
|
||||
$sfw = $video->tags->contains(function($key, $tag) {
|
||||
return $tag->normalized === 'sfw';
|
||||
});
|
||||
|
||||
return view('video', [
|
||||
'video' => $video,
|
||||
'related' => $category,
|
||||
'related' => $category,
|
||||
'sfw' => $sfw,
|
||||
'banner' => Banner::getRandom($video->isSfw())]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user