diff --git a/app/models/user.rb b/app/models/user.rb index ab2e391e9..e8c84359b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -442,10 +442,13 @@ class User < ApplicationRecord def prepare_new_user! BootstrapTimelineWorker.perform_async(account_id) ActivityTracker.increment('activity:accounts:local') + ActivityTracker.record('activity:logins', id) UserMailer.welcome(self).deliver_later end def prepare_returning_user! + return unless confirmed? + ActivityTracker.record('activity:logins', id) regenerate_feed! if needs_feed_update? end