mirror of
https://github.com/flarum/core.git
synced 2025-08-20 07:11:31 +02:00
Do not hide discussions if query contains gambits
This commit is contained in:
@@ -44,11 +44,9 @@ class FilterDiscussionListByTags
|
|||||||
{
|
{
|
||||||
$query = $event->search->getQuery();
|
$query = $event->search->getQuery();
|
||||||
|
|
||||||
foreach ($event->search->getActiveGambits() as $gambit) {
|
if (count($event->search->getActiveGambits()) > 0) {
|
||||||
if ($gambit instanceof TagGambit || $gambit instanceof SubscriptionGambit) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$query->whereNotExists(function ($query) {
|
$query->whereNotExists(function ($query) {
|
||||||
return $query->selectRaw('1')
|
return $query->selectRaw('1')
|
||||||
|
Reference in New Issue
Block a user