0
0
Fork 0

Send Salmon interactions

This commit is contained in:
Eugen Rochko 2016-02-24 12:57:29 +01:00
parent 10eb47a33e
commit fa7868675d
15 changed files with 118 additions and 25 deletions

View file

@ -1,6 +1,7 @@
class ProcessFeedService
include ApplicationHelper
class ProcessFeedService < BaseService
# Create local statuses from an Atom feed
# @param [String] body Atom feed
# @param [Account] account Account this feed belongs to
def call(body, account)
xml = Nokogiri::XML(body)
@ -105,6 +106,6 @@ class ProcessFeedService
end
def follow_remote_account_service
FollowRemoteAccountService.new
@follow_remote_account_service ||= FollowRemoteAccountService.new
end
end