added hidden at to stop indexing hidden posts and discussions
This commit is contained in:
parent
b87a4e2328
commit
99dff8289d
|
|
@ -32,6 +32,7 @@ class CommentSeeder extends Seeder
|
|||
}
|
||||
|
||||
return CommentPost::query()
|
||||
->whereNull('hidden_at')
|
||||
->where('type', CommentPost::$type)
|
||||
->with($includes);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ class DiscussionSeeder extends Seeder
|
|||
$includes[] = 'recipientGroups';
|
||||
}
|
||||
return Discussion::query()
|
||||
->whereNull('hidden_at')
|
||||
->with($includes);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue