[sidekiq] disable bootstraptimelineworker
This commit is contained in:
parent
b27c8a3238
commit
50f010652e
@ -219,7 +219,7 @@ class User < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def challenge
|
def challenge
|
||||||
#
|
#
|
||||||
end
|
end
|
||||||
|
|
||||||
def password_required?
|
def password_required?
|
||||||
@ -258,7 +258,7 @@ class User < ApplicationRecord
|
|||||||
private
|
private
|
||||||
|
|
||||||
def set_approved
|
def set_approved
|
||||||
self.approved = open_registrations?
|
self.approved = open_registrations?
|
||||||
end
|
end
|
||||||
|
|
||||||
def external?
|
def external?
|
||||||
@ -272,7 +272,7 @@ class User < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def prepare_new_user!
|
def prepare_new_user!
|
||||||
BootstrapTimelineWorker.perform_async(account_id)
|
# BootstrapTimelineWorker.perform_async(account_id)
|
||||||
ActivityTracker.increment('activity:accounts:local')
|
ActivityTracker.increment('activity:accounts:local')
|
||||||
UserMailer.welcome(self).deliver_later
|
UserMailer.welcome(self).deliver_later
|
||||||
end
|
end
|
||||||
|
@ -4,6 +4,6 @@ class BootstrapTimelineWorker
|
|||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
|
|
||||||
def perform(account_id)
|
def perform(account_id)
|
||||||
BootstrapTimelineService.new.call(Account.find(account_id))
|
# BootstrapTimelineService.new.call(Account.find(account_id))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -413,7 +413,7 @@ module GabSocial
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
BootstrapTimelineWorker.perform_async(account.id)
|
# BootstrapTimelineWorker.perform_async(account.id)
|
||||||
|
|
||||||
say("OK, unfollowed #{processed} followees, skipped #{failed}", :green)
|
say("OK, unfollowed #{processed} followees, skipped #{failed}", :green)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user