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()
|
return CommentPost::query()
|
||||||
|
->whereNull('hidden_at')
|
||||||
->where('type', CommentPost::$type)
|
->where('type', CommentPost::$type)
|
||||||
->with($includes);
|
->with($includes);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ class DiscussionSeeder extends Seeder
|
||||||
$includes[] = 'recipientGroups';
|
$includes[] = 'recipientGroups';
|
||||||
}
|
}
|
||||||
return Discussion::query()
|
return Discussion::query()
|
||||||
|
->whereNull('hidden_at')
|
||||||
->with($includes);
|
->with($includes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue