addded the right url to the push to method

This commit is contained in:
maxwell 2010-08-10 13:32:26 -07:00
parent 0ffe893f8a
commit 3607601ea3

View file

@ -18,7 +18,7 @@ module Diaspora
def push_to(recipients)
unless recipients.empty?
recipients.map!{|x| x = x.url + "receive/"}
recipients.map!{|x| x = x.receive_url }
xml = Post.build_xml_for(self)
Rails.logger.debug("Adding xml for #{self} to message queue to #{recipients}")
@@queue.add_post_request( recipients, xml )