Add support for tags in browse, APIv2 and on site release searches

This commit is contained in:
DariusIII
2018-11-06 14:09:39 +01:00
parent a7b5e2df24
commit 9538276aa5
7 changed files with 154 additions and 65 deletions
+8 -1
View File
@@ -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());