Rename friends_with to follows

This commit is contained in:
Tom Hughes 2025-01-17 22:42:35 +00:00
parent 4370fe45ad
commit bc630bca87
7 changed files with 16 additions and 16 deletions

View file

@ -35,7 +35,7 @@
<ul class='clearfix text-body-secondary'>
<li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
<li>
<% if current_user.friends_with?(contact) %>
<% 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.show.follow"), follow_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>

View file

@ -5,7 +5,7 @@
<%= message_body do %>
<p><%= t ".see_their_profile_html", :userurl => link_to(@viewurl, @viewurl) %></p>
<% unless @follow.following.friends_with?(@follow.follower) -%>
<% unless @follow.following.follows?(@follow.follower) -%>
<p><%= t ".follow_them_html", :followurl => link_to(@followurl, @followurl) %></p>
<% end -%>
<% end %>

View file

@ -4,6 +4,6 @@
<%= t '.see_their_profile', :userurl => @viewurl %>
<% unless @follow.following.friends_with?(@follow.follower) -%>
<% unless @follow.following.follows?(@follow.follower) -%>
<%= t '.follow_them', :followurl => @followurl %>
<% end -%>

View file

@ -83,7 +83,7 @@
</li>
<% if current_user %>
<li>
<% if current_user.friends_with?(@user) %>
<% if current_user.follows?(@user) %>
<%= link_to t(".unfollow"), follow_path(:display_name => @user.display_name), :method => :delete %>
<% else %>
<%= link_to t(".follow"), follow_path(:display_name => @user.display_name), :method => :post %>