X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2b7a48029bff06c190544f91c5969b09aeae552b..3f62d67684261b724a5a536be0260ce44654c828:/app/views/dashboards/_contact.html.erb
diff --git a/app/views/dashboards/_contact.html.erb b/app/views/dashboards/_contact.html.erb
index 41d0a24f2..8e78524de 100644
--- a/app/views/dashboards/_contact.html.erb
+++ b/app/views/dashboards/_contact.html.erb
@@ -35,10 +35,10 @@
- <%= link_to t("users.show.send message"), new_message_path(contact) %>
-
- <% if current_user.friends_with?(contact) %>
- <%= link_to t("users.show.unfollow"), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
+ <% if current_user.follows?(contact) %>
+ <%= link_to t("users.show.unfollow"), follow_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :delete %>
<% else %>
- <%= link_to t("users.follow"), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
+ <%= link_to t("users.show.follow"), follow_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
<% end %>