<%= @actor.data["preferredUsername"] %>

<%= display_username(@actor) %>

<%= raw(@actor.data["summary"]) %>

<%= unless @current_user == nil || @current_user.actor.ap_id == @actor.ap_id do %> <%= case @following_state do %> <% :not_following -> %> <%= form_tag Routes.frontend_path(@conn, :follow, @actor.id), method: :post, class: "follow-form" do %> <%= submit "Follow" %> <% end %> <% :following -> %> <%= form_tag Routes.frontend_path(@conn, :unfollow, @actor.id), method: :post, class: "follow-form" do %> <%= submit "Unfollow" %> <% end %> <% :pending -> %> <% end %> <% end %>
<%= render "_timeline.html", conn: @conn, statuses_with_authors: @statuses_with_actor %>