mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Do not hide discussions if query contains gambits
This commit is contained in:
parent
424dde9ea1
commit
f9d50ec67d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user