The code powering m.abunchtell.com https://m.abunchtell.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

16 wiersze
502 B

  1. class UnfollowService < BaseService
  2. # Unfollow and notify the remote user
  3. # @param [Account] source_account Where to unfollow from
  4. # @param [Account] target_account Which to unfollow
  5. def call(source_account, target_account)
  6. follow = source_account.unfollow!(target_account)
  7. send_interaction_service.(follow.stream_entry, target_account) unless target_account.local?
  8. end
  9. private
  10. def send_interaction_service
  11. @send_interaction_service ||= SendInteractionService.new
  12. end
  13. end