From 8caa0350b390c52237723fcc13f2d5d25c807fc3 Mon Sep 17 00:00:00 2001
From: Raphael <raphael@joindiaspora.com>
Date: Wed, 21 Jul 2010 15:56:58 -0700
Subject: [PATCH] request fixing

---
 app/controllers/requests_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/requests_controller.rb b/app/controllers/requests_controller.rb
index 1f01180dcf..a53c5895e5 100644
--- a/app/controllers/requests_controller.rb
+++ b/app/controllers/requests_controller.rb
@@ -25,7 +25,7 @@ class RequestsController < ApplicationController
   end
   
   def create
-    url = relationship_flow(params[:request][:destination_url]).values.first
+    url = relationship_flow(params[:request][:destination_url])
     @request = current_user.send_friend_request_to(url) unless url.include?('@')|| url == ''
     if @request
       flash[:notice] = "a friend request was sent to #{@request.destination_url}"
-- 
GitLab