From c680c5206083f0762c754ce27c2aaf3580b00f11 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 28 Apr 2019 17:03:35 -0600 Subject: [PATCH] Update SuggestionService --- app/Services/SuggestionService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Services/SuggestionService.php b/app/Services/SuggestionService.php index a4d6b8d2..37c41d58 100644 --- a/app/Services/SuggestionService.php +++ b/app/Services/SuggestionService.php @@ -37,7 +37,10 @@ class SuggestionService { public static function warmCache() { if(Redis::zcount(self::CACHE_KEY, '-inf', '+inf') == 0) { - $ids = Profile::whereNull('domain')->whereIsSuggestable(true)->pluck('id'); + $ids = Profile::whereNull('domain') + ->whereIsSuggestable(true) + ->whereIsPrivate(false) + ->pluck('id'); foreach($ids as $id) { self::set($id); }