mirror of
https://github.com/flarum/core.git
synced 2025-08-19 23:01:56 +02:00
Do not hide tags from Following (subscriptions)
Closes flarum/core#1232
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Flarum\Tags\Listener;
|
||||
|
||||
use Flarum\Discussion\Event\Searching;
|
||||
use Flarum\Event\ConfigureDiscussionGambits;
|
||||
use Flarum\Subscriptions\Gambit\SubscriptionGambit;
|
||||
use Flarum\Tags\Gambit\TagGambit;
|
||||
use Flarum\Tags\Tag;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
@@ -44,7 +45,7 @@ class FilterDiscussionListByTags
|
||||
$query = $event->search->getQuery();
|
||||
|
||||
foreach ($event->search->getActiveGambits() as $gambit) {
|
||||
if ($gambit instanceof TagGambit) {
|
||||
if ($gambit instanceof TagGambit || $gambit instanceof SubscriptionGambit) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user