1
0
mirror of https://github.com/flarum/core.git synced 2025-08-19 14:51:47 +02:00

Do not hide discussions if query contains gambits

This commit is contained in:
David Sevilla Martín
2018-10-06 08:36:39 -04:00
parent 424dde9ea1
commit f9d50ec67d

View File

@@ -44,10 +44,8 @@ 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) {