From 61c0a4cdaaa1afc3a71feb6abaaecf096853b0d7 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Thu, 5 Apr 2018 14:17:01 -0700 Subject: [PATCH] Change onboarding limit (#186) --- app/controllers/api/v0/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v0/articles_controller.rb b/app/controllers/api/v0/articles_controller.rb index 12ae41754..2ff613ed0 100644 --- a/app/controllers/api/v0/articles_controller.rb +++ b/app/controllers/api/v0/articles_controller.rb @@ -31,7 +31,7 @@ module Api where("positive_reactions_count > ? OR comments_count > ?", 10, 3).limit(15).each do |article| @articles << article end - @articles = @articles.uniq + @articles = @articles.uniq.sample(6) end end end