Skip to content

Commit

Permalink
Fix unconfirmed accounts being registered as active users (mastodon#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and noellabo committed Apr 22, 2023
1 parent 465c1b3 commit 430cadc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/user.rb
Expand Up @@ -508,10 +508,13 @@ def sanitize_languages
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
Expand Down

0 comments on commit 430cadc

Please sign in to comment.