do not call a remote job if their are no remote subscribers
This commit is contained in:
parent
9115a8f1f5
commit
1164303251
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue