From 50f010652e9573bbf48d2cbef36d1d9fc8072191 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sat, 9 Jan 2021 18:21:41 -0500 Subject: [PATCH] [sidekiq] disable bootstraptimelineworker --- app/models/user.rb | 6 +++--- app/workers/bootstrap_timeline_worker.rb | 2 +- lib/gabsocial/accounts_cli.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 0bb4784f..4cbb2f5e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -219,7 +219,7 @@ class User < ApplicationRecord end def challenge - # + # end def password_required? @@ -258,7 +258,7 @@ class User < ApplicationRecord private def set_approved - self.approved = open_registrations? + self.approved = open_registrations? end def external? @@ -272,7 +272,7 @@ class User < ApplicationRecord end def prepare_new_user! - BootstrapTimelineWorker.perform_async(account_id) + # BootstrapTimelineWorker.perform_async(account_id) ActivityTracker.increment('activity:accounts:local') UserMailer.welcome(self).deliver_later end diff --git a/app/workers/bootstrap_timeline_worker.rb b/app/workers/bootstrap_timeline_worker.rb index 89cfb4c3..27a585de 100644 --- a/app/workers/bootstrap_timeline_worker.rb +++ b/app/workers/bootstrap_timeline_worker.rb @@ -4,6 +4,6 @@ class BootstrapTimelineWorker include Sidekiq::Worker def perform(account_id) - BootstrapTimelineService.new.call(Account.find(account_id)) + # BootstrapTimelineService.new.call(Account.find(account_id)) end end diff --git a/lib/gabsocial/accounts_cli.rb b/lib/gabsocial/accounts_cli.rb index b04ef20c..20de1791 100644 --- a/lib/gabsocial/accounts_cli.rb +++ b/lib/gabsocial/accounts_cli.rb @@ -413,7 +413,7 @@ module GabSocial end end - BootstrapTimelineWorker.perform_async(account.id) + # BootstrapTimelineWorker.perform_async(account.id) say("OK, unfollowed #{processed} followees, skipped #{failed}", :green) end