Removed autofollow_inviter in BootstrapTimelineService

• Removed:
- autofollow_inviter in BootstrapTimelineService
This commit is contained in:
mgabdev 2020-12-23 00:42:36 -05:00
parent 5b40f62498
commit 88638cc262

View File

@ -4,17 +4,11 @@ class BootstrapTimelineService < BaseService
def call(source_account)
@source_account = source_account
autofollow_inviter!
autofollow_bootstrap_timeline_accounts!
end
private
def autofollow_inviter!
return unless @source_account&.user&.invite&.autofollow?
FollowService.new.call(@source_account, @source_account.user.invite.user.account)
end
def autofollow_bootstrap_timeline_accounts!
bootstrap_timeline_accounts.each do |target_account|
FollowService.new.call(@source_account, target_account)