blah server ver blah
This commit is contained in:
@@ -25,6 +25,8 @@ class VideoController extends Controller
|
||||
$videos = Video::filtered();
|
||||
if($request->has('q')) {
|
||||
$needle = trim($request->input('q'));
|
||||
if(count(explode(",", $needle)) > 10)
|
||||
return back()->with('error', 'too many search terms');
|
||||
$videos = $videos->withAnyTagsFuzzy($needle);
|
||||
return view('index', [
|
||||
'number_of_results' => $videos->get()->count(),
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 247 KiB After Width: | Height: | Size: 866 KiB |
Reference in New Issue
Block a user