From 0c00947fec9894878ed49f3128bd3dc6efdfee74 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg <maxwell@joindiaspora.com> Date: Thu, 8 Sep 2011 10:24:41 -0700 Subject: [PATCH] temporary fix to prevent DiapsoraHQ from killing Diasporg till we implemnt fanout --- lib/postzord/dispatch.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/postzord/dispatch.rb b/lib/postzord/dispatch.rb index cb99b3635f..c3390a75b8 100644 --- a/lib/postzord/dispatch.rb +++ b/lib/postzord/dispatch.rb @@ -35,7 +35,7 @@ class Postzord::Dispatch self.deliver_to_local(local_people) end - self.deliver_to_remote(remote_people) + self.deliver_to_remote(remote_people) unless @sender.username == 'diasporahq' #NOTE: 09/08/11 this is temporary (~3days max) till we fix fanout in federation end self.deliver_to_services(opts[:url], opts[:services] || []) @object.after_dispatch(@sender) @@ -86,6 +86,7 @@ class Postzord::Dispatch socket_to_users(users) end + def notify_users(users) Resque.enqueue(Job::NotifyLocalUsers, users.map{|u| u.id}, @object.class.to_s, @object.id, @object.author.id) end -- GitLab