mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add a user_seen DiscourseEvent for plugins to hook into
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user