mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: phase 1 of supporting multiple email addresses
This commit is contained in:
parent
739794f0cb
commit
d0b027d88d
35 changed files with 337 additions and 80 deletions
|
@ -153,7 +153,7 @@ module Email
|
|||
if $redis.setnx(key, "1")
|
||||
$redis.expire(key, 25.hours)
|
||||
|
||||
if user = User.find_by(email: email)
|
||||
if user = User.find_by_email(email)
|
||||
user.user_stat.bounce_score += score
|
||||
user.user_stat.reset_bounce_score_after = SiteSetting.reset_bounce_score_after_days.days.from_now
|
||||
user.user_stat.save
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue