Merge remote-tracking branch 'parent/main' into kb_migration

This commit is contained in:
KMY 2023-03-08 16:39:01 +09:00
commit dbea57ada8
80 changed files with 180 additions and 364 deletions

View file

@ -507,11 +507,14 @@ 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
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