Update profile information and download avatar of remote accounts

This commit is contained in:
Eugen Rochko 2016-02-28 14:26:26 +01:00
parent 2825991e09
commit ad5ae3f60e
9 changed files with 87 additions and 18 deletions

View file

@ -19,6 +19,8 @@ class ProcessInteractionService < BaseService
end
if salmon.verify(envelope, account.keypair)
update_remote_profile_service.(xml.at_xpath('/xmlns:entry/xmlns:author'), account)
case verb(xml)
when :follow
follow!(account, target_account)
@ -86,4 +88,8 @@ class ProcessInteractionService < BaseService
def process_feed_service
@process_feed_service ||= ProcessFeedService.new
end
def update_remote_profile_service
@update_remote_profile_service ||= UpdateRemoteProfileService.new
end
end