mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 03:56:21 +08:00
FIX: digest emails should not include posts that are still in the edit grace period
This commit is contained in:
@ -99,6 +99,7 @@ class UserNotifications < ActionMailer::Base
|
||||
.where('posts.post_type = ?', Post.types[:regular])
|
||||
.where('posts.deleted_at IS NULL AND posts.hidden = false AND posts.user_deleted = false')
|
||||
.where("posts.post_number > ? AND posts.score > ?", 1, ScoreCalculator.default_score_weights[:like_score] * 5.0)
|
||||
.where('posts.created_at < ?', (SiteSetting.editing_grace_period || 0).seconds.ago)
|
||||
.limit(SiteSetting.digest_posts)
|
||||
else
|
||||
[]
|
||||
|
Reference in New Issue
Block a user