You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
367 B
18 lines
367 B
# frozen_string_literal: true
|
|
|
|
class BootstrapTimelineService < BaseService
|
|
def call(source_account)
|
|
@source_account = source_account
|
|
|
|
autofollow_inviter!
|
|
end
|
|
|
|
private
|
|
|
|
def autofollow_inviter!
|
|
return unless @source_account&.user&.invite&.autofollow?
|
|
|
|
FollowService.new.call(@source_account, @source_account.user.invite.user.account)
|
|
end
|
|
end
|