MS DG fixed friend request

This commit is contained in:
maxwell 2010-07-08 11:30:58 -07:00
parent 11d4a9e2c7
commit 1885b5b6b9
2 changed files with 5 additions and 2 deletions

View file

@ -9,7 +9,10 @@ class DashboardController < ApplicationController
def receive
store_objects_from_xml CGI::unescape(params[:xml])
puts "SOMEONE JUST SENT ME: #{params[:xml]}"
store_objects_from_xml params[:xml)
render :nothing => true
end

View file

@ -21,7 +21,7 @@ class PersonRequest
def self.for(url)
request = PersonRequest.new(:url => url, :person => User.first)
request.save
request.push_to_url(url)
request.push_to([self])
end
def check_for_person_requests