Move account header and avatar methods to a concern (#2825)

This commit is contained in:
Matt Jankowski 2017-05-05 15:37:02 -04:00 committed by Eugen Rochko
parent ee3e0a93f4
commit 4e05751346
4 changed files with 89 additions and 67 deletions

View file

@ -26,7 +26,7 @@ class UpdateRemoteProfileService < BaseService
old_hub_url = account.hub_url
account.hub_url = hub_link['href'] if !hub_link.nil? && !hub_link['href'].blank? && (hub_link['href'] != old_hub_url)
account.save_with_optional_avatar!
account.save_with_optional_media!
Pubsubhubbub::SubscribeWorker.perform_async(account.id) if resubscribe && (account.hub_url != old_hub_url)
end