expose recommended posts to everyone

This commit is contained in:
r888888888
2018-07-21 23:25:06 -07:00
committed by Albert Yi
parent a669fe361c
commit cc7a66438f
5 changed files with 28 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ module RecommenderService
def available_for_post?(post)
return true if Rails.env.development?
enabled? && CurrentUser.enable_recommended_posts? && post.created_at > Date.civil(2017, 1, 1) && post.fav_count >= SCORE_THRESHOLD
enabled? && post.created_at > Date.civil(2017, 1, 1) && post.fav_count >= SCORE_THRESHOLD
end
def available_for_user?