mirror of
https://github.com/flarum/core.git
synced 2025-08-20 23:31:27 +02:00
Merge pull request #58 from datitisev/1232-tag-exclusion-subscription
Do not hide tags from Following (subscriptions)
This commit is contained in:
@@ -43,11 +43,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) {
|
|
||||||
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