about summary refs log tree commit diff
path: root/app/services/update_remote_profile_service.rb
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-05 15:37:02 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-05 21:37:02 +0200
commit4e057513466884050eb17b0d3c4b091852399ee4 (patch)
treef81bec456acb0737dac53b4c0104922740b83bef /app/services/update_remote_profile_service.rb
parentee3e0a93f43d7236928dc2dd63361b69cd7883ee (diff)
Move account header and avatar methods to a concern (#2825)
Diffstat (limited to 'app/services/update_remote_profile_service.rb')
-rw-r--r--app/services/update_remote_profile_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/update_remote_profile_service.rb b/app/services/update_remote_profile_service.rb
index f0c39ecc0..6607bc84e 100644
--- a/app/services/update_remote_profile_service.rb
+++ b/app/services/update_remote_profile_service.rb
@@ -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