Change onboarding limit (#186)

This commit is contained in:
Ben Halpern 2018-04-05 14:17:01 -07:00 committed by GitHub
parent deb63ab643
commit 61c0a4cdaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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