mail_new_activity: use updated_at, to give time after initial

This commit is contained in:
Carl Chenet 2017-05-08 19:20:35 +02:00
parent cabe52b31d
commit 70f16e4dd3
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ last_comment_id = (Keystore.value_for(LAST_COMMENT_KEY) ||
Comment.where("id > ? AND (is_deleted = ? AND is_moderated = ?)",
last_comment_id, false, false).order(:id).each do |c|
# allow some time for newer comments to be edited before sending them out
if (Time.now - c.created_at) < 2.minutes
if (Time.now - (c.updated_at || c.created_at)) < 2.minutes
break
end