fix: byobu discussions open up while using this extension
This commit is contained in:
parent
82e6ec786f
commit
a9dc8bfb16
|
|
@ -87,8 +87,14 @@ class CommentSeeder extends Seeder
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->extensionEnabled('fof-byobu')) {
|
if ($this->extensionEnabled('fof-byobu')) {
|
||||||
$document['recipient_users'] = $model->discussion->recipientUsers->pluck('id')->toArray();
|
$document['recipient_users'] = $model->discussion->recipientUsers
|
||||||
$document['recipient_groups'] = $model->discussion->recipientGroups->pluck('id')->toArray();
|
->whereNull('removed_at')
|
||||||
|
->pluck('id')
|
||||||
|
->toArray();
|
||||||
|
$document['recipient_groups'] = $model->discussion->recipientGroups
|
||||||
|
->whereNull('removed_at')
|
||||||
|
->pluck('id')
|
||||||
|
->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $document;
|
return $document;
|
||||||
|
|
|
||||||
|
|
@ -88,8 +88,14 @@ class DiscussionSeeder extends Seeder
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->extensionEnabled('fof-byobu')) {
|
if ($this->extensionEnabled('fof-byobu')) {
|
||||||
$document['recipient_users'] = $model->recipientUsers->pluck('id')->toArray();
|
$document['recipient_users'] = $model->recipientUsers
|
||||||
$document['recipient_groups'] = $model->recipientGroups->pluck('id')->toArray();
|
->whereNull('removed_at')
|
||||||
|
->pluck('id')
|
||||||
|
->toArray();
|
||||||
|
$document['recipient_groups'] = $model->recipientGroups
|
||||||
|
->whereNull('removed_at')
|
||||||
|
->pluck('id')
|
||||||
|
->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->extensionEnabled('flarum-sticky')) {
|
if ($this->extensionEnabled('flarum-sticky')) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue