From f309299e22dd7e286c8e2ba7e05ac0e2a408fdb5 Mon Sep 17 00:00:00 2001
From: Raphael <raphael@joindiaspora.com>
Date: Fri, 27 Aug 2010 10:26:03 -0700
Subject: [PATCH] Take out remove friend button on stranger, there should be an
 add friend

---
 app/views/people/show.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml
index 1c7dd23680..b0e5687992 100644
--- a/app/views/people/show.html.haml
+++ b/app/views/people/show.html.haml
@@ -5,7 +5,7 @@
 
     %h1
       = @person.real_name
-      - unless @person.id == current_user.person.id
+      - if @person != current_user.person && current_user.friends.include?(@person)
         .right
           = link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete, :class => "button"
     
-- 
GitLab