From 58b3f4fd674d29c444b236ad3936dbd04c6e175e Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 2 Dec 2016 14:14:49 +0100 Subject: Fix #329 - avatar errors no longer prevent remote accounts from being saved (without avatar). Also improved search position of exact matches --- app/workers/hub_ping_worker.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/workers') 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 -- cgit