diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-26 15:12:57 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-26 15:18:21 +0100 |
commit | 2cb3dc5e5a1320efda89b258048e7bc3542a5744 (patch) | |
tree | e26a98c30def78ac9caab7b63c658b1f86c969b9 /app/services/follow_remote_account_service.rb | |
parent | 4986c727d96b171d439351b0236fae7dbe86b695 (diff) |
Update hub URL and re-subscribe if hub URL changes
Diffstat (limited to 'app/services/follow_remote_account_service.rb')
-rw-r--r-- | app/services/follow_remote_account_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb index 37339d8ed..f640222b0 100644 --- a/app/services/follow_remote_account_service.rb +++ b/app/services/follow_remote_account_service.rb @@ -80,8 +80,7 @@ class FollowRemoteAccountService < BaseService end def get_profile(xml, account) - author = xml.at_xpath('/xmlns:feed/xmlns:author') || xml.at_xpath('/xmlns:feed').at_xpath('./dfrn:owner', dfrn: DFRN_NS) - update_remote_profile_service.call(author, account) + update_remote_profile_service.call(xml.at_xpath('/xmlns:feed'), account) end def update_remote_profile_service |