]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/dashboards/_contact.html.erb
Merge remote-tracking branch 'upstream/pull/5510'
[rails.git] / app / views / dashboards / _contact.html.erb
index 41d0a24f29beea2259baef3e91d1b24e11959a5e..4547a2d7514f086a06fe95317d61caf92ebfbdc4 100644 (file)
@@ -36,9 +36,9 @@
         <li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
         <li>
           <% 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 %>
+            <%= 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 %>
         </li>
       </ul>