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:
@@ -44,10 +44,8 @@ class FilterDiscussionListByTags
|
||||
{
|
||||
$query = $event->search->getQuery();
|
||||
|
||||
foreach ($event->search->getActiveGambits() as $gambit) {
|
||||
if ($gambit instanceof TagGambit || $gambit instanceof SubscriptionGambit) {
|
||||
return;
|
||||
}
|
||||
if (count($event->search->getActiveGambits()) > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$query->whereNotExists(function ($query) {
|
||||
|
Reference in New Issue
Block a user