7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'app/models/newsmast_mastodon/concerns/override_prepare_new_user.rb', line 7
def prepare_new_user!
if ENV['AUTO_FOLLOW_ENABLED'].present? && ENV['AUTO_FOLLOW_ENABLED'].to_s.downcase == 'true'
NewsmastMastodon::AutoFollowDefaultAccountsService.new.call(account)
end
BootstrapTimelineWorker.perform_async(account_id)
ActivityTracker.increment('activity:accounts:local')
ActivityTracker.record('activity:logins', id)
if ENV['WELCOME_EMAIL_DISABLED'].blank? || ENV['WELCOME_EMAIL_DISABLED'].to_s.downcase != 'true'
UserMailer.welcome(self).deliver_later(wait: 1.hour)
end
TriggerWebhookWorker.perform_async('account.approved', 'Account', account_id)
end
|