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.

12 lines
251 B

  1. class FollowService
  2. def call(source_account, uri)
  3. target_account = follow_remote_account_service.(uri)
  4. source_account.follow!(target_account)
  5. end
  6. private
  7. def follow_remote_account_service
  8. FollowRemoteAccountService.new
  9. end
  10. end