mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
new 'reset_bounce_score_after_days' site setting
This commit is contained in:
parent
d2e22ab215
commit
7648916314
3 changed files with 3 additions and 1 deletions
|
@ -170,7 +170,7 @@ module Email
|
|||
|
||||
if user = User.find_by(email: email)
|
||||
user.user_stat.bounce_score += score
|
||||
user.user_stat.reset_bounce_score_after = 30.days.from_now
|
||||
user.user_stat.reset_bounce_score_after = SiteSetting.reset_bounce_score_after_days.days.from_now
|
||||
user.user_stat.save
|
||||
|
||||
if user.user_stat.bounce_score >= SiteSetting.bounce_score_threshold
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue