app/views/federails/client/followings/_follow_actions.html.erb in federails-0.3.0 vs app/views/federails/client/followings/_follow_actions.html.erb in federails-0.4.0
- old
+ new
@@ -4,20 +4,20 @@
- user (usually user)
- actor (target actor)
%>
<p>
<% if Federails::Client::FollowingPolicy.new(user, Federails::Following).create? %>
- <% follow = user.actor.follows? actor %>
+ <% follow = user.federails_actor.follows? actor %>
<% if actor.entity == user %>
<button type="button" role="button" disabled="disabled">That's you</button>
<% elsif follow %>
Already following (<%= follow.status %>)
<%= button_to 'Cancel', federails.client_following_path(follow), method: :delete %>
<% else %>
<%= button_to "Follow #{actor.username}", federails.follow_client_followings_path, params: { account: actor.at_address }, method: :post %>
<% end %>
- <% followed = actor.follows? user.actor %>
+ <% followed = actor.follows? user.federails_actor %>
<% if followed %>
<% if followed.pending? %>
<%= actor.username %> wants to follow you.
<%= button_to 'Accept request', federails.accept_client_following_path(followed), method: :put %>
<% else %>