Add email_digest_eligible check to non-following emails (#278)
This commit is contained in:
parent
40a8476704
commit
524052234a
1 changed files with 1 additions and 1 deletions
|
|
@ -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").
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue