Replace lookup_friend with lookup_user in FollowsController

This commit is contained in:
Anton Khorev 2025-01-18 19:35:30 +03:00
parent 2074e9dce2
commit 82fb1bf798
2 changed files with 12 additions and 22 deletions

View file

@ -1,5 +1,5 @@
<% content_for :heading do %>
<h1><%= t(@already_follows ? ".unfollow.heading" : ".follow.heading", :user => @friend.display_name) %></h1>
<h1><%= t(@already_follows ? ".unfollow.heading" : ".follow.heading", :user => @user.display_name) %></h1>
<% end %>
<%= bootstrap_form_tag :method => (@already_follows ? :delete : :post) do |f| %>