diff --git a/app/models/user.rb b/app/models/user.rb index c4cfcfc3e8e..8c4a0a130a2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -521,6 +521,8 @@ class User < ActiveRecord::Base # using update_column to avoid the AR transaction update_column(:last_seen_at, now) update_column(:first_seen_at, now) unless self.first_seen_at + + DiscourseEvent.trigger(:user_seen, self) end def self.gravatar_template(email)