From 5c7d39505a5ff714dce9483b6419bc6aee75bc23 Mon Sep 17 00:00:00 2001
From: "Thomas R. Koll" <tomk32@tomk32.de>
Date: Thu, 30 Dec 2010 00:48:43 +0100
Subject: [PATCH] Fixes #721 when creating a comment (ajax) the link to your
 own profile is fucked up and instead it linked to the user id

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

diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb
index 9e8f35c2a4..df7c5a0a6a 100644
--- a/app/controllers/comments_controller.rb
+++ b/app/controllers/comments_controller.rb
@@ -28,7 +28,7 @@ class CommentsController < ApplicationController
                                        :partial => 'comments/comment',
                                        :locals => { :hash => {
                                          :comment => @comment,
-                                         :person => current_user,
+                                         :person => current_user.person,
                                         }}
                                       )
                                     }
-- 
GitLab