2019-12-20 06:34:14 -07:00
|
|
|
<%= if @error == :error do %>
|
|
|
|
<h2>Error fetching user</h2>
|
|
|
|
<% else %>
|
|
|
|
<h2>Remote follow</h2>
|
|
|
|
<img height="128" width="128" src="<%= avatar_url(@followee) %>">
|
|
|
|
<p><%= @followee.nickname %></p>
|
2021-05-18 16:11:25 -06:00
|
|
|
<%= form_for @conn, Routes.remote_follow_path(@conn, :do_follow), [as: "user"], fn f -> %>
|
2019-12-20 06:34:14 -07:00
|
|
|
<%= hidden_input f, :id, value: @followee.id %>
|
|
|
|
<%= submit "Authorize" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|