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 skerit committed Jul 7, 2023
1 parent a1fd161 commit 81958cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,14 @@ def sanitize_role
def prepare_new_user!
BootstrapTimelineWorker.perform_async(account_id)
ActivityTracker.increment('activity:accounts:local')
ActivityTracker.record('activity:logins', id)
UserMailer.welcome(self).deliver_later
TriggerWebhookWorker.perform_async('account.approved', 'Account', account_id)
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 81958cb

Please sign in to comment.