mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add support for tags in browse, APIv2 and on site release searches
This commit is contained in:
@@ -65,6 +65,11 @@ class SearchController extends BasePageController
|
||||
);
|
||||
}
|
||||
|
||||
$tags = [];
|
||||
if ($request->has('tags')) {
|
||||
$tags = explode(',', $request->input('tags'));
|
||||
}
|
||||
|
||||
$rslt = $releases->search(
|
||||
$searchString,
|
||||
-1,
|
||||
@@ -83,7 +88,9 @@ class SearchController extends BasePageController
|
||||
-1,
|
||||
$this->userdata['categoryexclusions'],
|
||||
'basic',
|
||||
$categoryID
|
||||
$categoryID,
|
||||
0,
|
||||
$tags
|
||||
);
|
||||
|
||||
$results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query());
|
||||
|
||||
Reference in New Issue
Block a user