do not call a remote job if their are no remote subscribers

This commit is contained in:
maxwell 2011-03-15 17:49:43 -07:00
parent 9115a8f1f5
commit 1164303251

View file

@ -40,7 +40,7 @@ class Postzord::Dispatch
protected
def deliver_to_remote(people)
Resque.enqueue(Job::HttpMulti, @sender.id, Base64.encode64(@object.to_diaspora_xml), people.map{|p| p.id})
Resque.enqueue(Job::HttpMulti, @sender.id, Base64.encode64(@object.to_diaspora_xml), people.map{|p| p.id}) unless people.empty?
end
def deliver_to_local(people)