Add email_digest_eligible check to non-following emails (#278)

This commit is contained in:
Ben Halpern 2018-05-03 17:34:31 -04:00 committed by GitHub
parent 40a8476704
commit 524052234a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ class EmailLogic
else
Article.
where("published_at > ?", fresh_date).
where(published: true, featured: true).
where(published: true, featured: true, email_digest_eligible: true).
where.not(user_id: @user.id).
where("positive_reactions_count > ?", 30).
order("positive_reactions_count DESC").