about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-02 14:14:49 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-02 14:14:49 +0100
commit58b3f4fd674d29c444b236ad3936dbd04c6e175e (patch)
treec5d32fb2f38256cc116338def4d2e408e6d20624 /app/workers
parent2b2797d6a5902af63c3362b5abca03578f567761 (diff)
Fix #329 - avatar errors no longer prevent remote accounts from being saved
(without avatar). Also improved search position of exact matches
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/hub_ping_worker.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/workers/hub_ping_worker.rb b/app/workers/hub_ping_worker.rb
index d9a9ff427..14a151ba0 100644
--- a/app/workers/hub_ping_worker.rb
+++ b/app/workers/hub_ping_worker.rb
@@ -6,6 +6,7 @@ class HubPingWorker
 
   def perform(account_id)
     account = Account.find(account_id)
-    account.ping!(account_url(account, format: 'atom'), [Rails.configuration.x.hub_url])
+    return unless account.local?
+    OStatus2::Publication.new(account_url(account, format: 'atom'), [Rails.configuration.x.hub_url]).publish
   end
 end