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