mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 22:43:41 +08:00
Do not hide tags from Following (subscriptions)
Closes flarum/core#1232
This commit is contained in:
parent
a58c8cd998
commit
424dde9ea1
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user