X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2b7a48029bff06c190544f91c5969b09aeae552b..be11f2075e8bbde0a1e0640fd254c64ee0c94f25:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index efeac90bc..5a8c116c1 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -84,9 +84,9 @@
<% if current_user %>
<% if current_user.friends_with?(@user) %>
- <%= link_to t(".unfollow"), remove_friend_path(:display_name => @user.display_name), :method => :post %>
+ <%= link_to t(".unfollow"), follow_path(:display_name => @user.display_name), :method => :delete %>
<% else %>
- <%= link_to t(".follow"), make_friend_path(:display_name => @user.display_name), :method => :post %>
+ <%= link_to t(".follow"), follow_path(:display_name => @user.display_name), :method => :post %>
<% end %>
<% end %>