mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-16 03:43:08 +00:00
18 lines
367 B
Ruby
18 lines
367 B
Ruby
# 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
|