diff --git a/lib/common.rb b/lib/common.rb index 6a957ac4c..4d0d11a00 100644 --- a/lib/common.rb +++ b/lib/common.rb @@ -57,12 +57,14 @@ module Diaspora end def push_to(recipients) + + @@queue.add_hub_notification('http://pubsubhubbub.appspot.com/', User.owner.url + self.class.to_s.pluralize.underscore + '.atom') + unless recipients.empty? recipients.map!{|x| x = x.url + "receive/"} xml = self.class.build_xml_for([self]) @@queue.add_post_request( recipients, xml ) - @@queue.add_hub_notification('http://pubsubhubbub.appspot.com/', User.owner.url + self.class.to_s.pluralize.underscore + '.atom') @@queue.process end