mirror of
https://github.com/flarum/framework.git
synced 2025-02-24 02:19:13 +08:00
Merge pull request #58 from datitisev/1232-tag-exclusion-subscription
Do not hide tags from Following (subscriptions)
This commit is contained in:
commit
85158dc34f
@ -43,10 +43,8 @@ class FilterDiscussionListByTags
|
||||
{
|
||||
$query = $event->search->getQuery();
|
||||
|
||||
foreach ($event->search->getActiveGambits() as $gambit) {
|
||||
if ($gambit instanceof TagGambit) {
|
||||
return;
|
||||
}
|
||||
if (count($event->search->getActiveGambits()) > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$query->whereNotExists(function ($query) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user