Moved url mapping to push_to

This commit is contained in:
Raphael 2010-06-30 15:18:42 -07:00
parent 940b967bbb
commit aa083735fa

View file

@ -69,9 +69,10 @@ module Diaspora
def push_to(recipients) def push_to(recipients)
xml = self.class.build_xml_for([self]) recipients.map!{|x| x = x.url + "receive/"}
@@queue.add_post_request( recipients, xml ) xml = self.class.build_xml_for([self])
@@queue.process @@queue.add_post_request( recipients, xml )
@@queue.process
end end
@ -80,7 +81,7 @@ module Diaspora
end end
def friends_with_permissions def friends_with_permissions
Friend.all.map{|x| x = x.url + "receive/"} Friend.all
end end
def self.build_xml_for(posts) def self.build_xml_for(posts)