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.

17 lines
367 B

  1. # frozen_string_literal: true
  2. class BootstrapTimelineService < BaseService
  3. def call(source_account)
  4. @source_account = source_account
  5. autofollow_inviter!
  6. end
  7. private
  8. def autofollow_inviter!
  9. return unless @source_account&.user&.invite&.autofollow?
  10. FollowService.new.call(@source_account, @source_account.user.invite.user.account)
  11. end
  12. end