DG MS; fixed minor webhook bug when generating xml collection.

This commit is contained in:
danielvincent 2010-06-17 18:45:50 -07:00
parent 02137b9fb9
commit 39118293eb
3 changed files with 6 additions and 6 deletions

View file

@ -10,10 +10,6 @@ class DashboardController < ApplicationController
def receive
store_posts_from_xml (params[:xml])
puts "holy boner batman"
render :nothing => true
end
end

View file

@ -31,6 +31,10 @@ class Post
query.order_by( [:created_at, :desc] )
end
def each
yield self
end
protected

View file

@ -8,7 +8,7 @@ module Diaspora
@@queue = MessageHandler.new
def notify_friends
xml = prep_webhook
xml = Post.build_xml_for(self)
@@queue.add_post_request( friends_with_permissions, xml )
@@queue.process
end
@ -18,7 +18,7 @@ module Diaspora
end
def prep_many
"<post>#{self.to_xml.to_s}</post>"
"<post>#{self.prep_webhook}</post>"
end
def friends_with_permissions