added hidden at to stop indexing hidden posts and discussions

This commit is contained in:
Daniël Klabbers 2021-11-08 09:36:53 +01:00
parent b87a4e2328
commit 99dff8289d
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class CommentSeeder extends Seeder
}
return CommentPost::query()
->whereNull('hidden_at')
->where('type', CommentPost::$type)
->with($includes);
}

View File

@ -33,6 +33,7 @@ class DiscussionSeeder extends Seeder
$includes[] = 'recipientGroups';
}
return Discussion::query()
->whereNull('hidden_at')
->with($includes);
}