diff --git a/lib/postzord/dispatcher.rb b/lib/postzord/dispatcher.rb index 21d89c361..edf6b16e9 100644 --- a/lib/postzord/dispatcher.rb +++ b/lib/postzord/dispatcher.rb @@ -80,10 +80,14 @@ class Postzord::Dispatcher end # Enqueues a job in Resque - # @abstract # @param remote_people [Array] Recipients of the post on other pods + # @return [void] def queue_remote_delivery_job(remote_people) - raise "You need to specify a remote delivery job" + Resque.enqueue(Jobs::HttpMulti, + @sender.id, + Base64.encode64s(@object.to_diaspora_xml), + remote_people.map{|p| p.id}, + self.class.to_s) end # @param people [Array] Recipients of the post @@ -145,12 +149,5 @@ class Postzord::Dispatcher @object.socket_to_user(user) end end - - # Enqueues a job in Resque - # @param remote_people [Array] Recipients of the post on other pods - # @return [void] - def queue_remote_delivery_job(remote_people) - Resque.enqueue(Jobs::HttpMulti, @sender.id, Base64.encode64s(@object.to_diaspora_xml), remote_people.map{|p| p.id}, self.class.to_s) - end end