<%= @actor.name %>

<%= render 'federails/client/followings/follow_actions', user: current_user, actor: @actor %>
<% if @actor.local? %> <%= link_to 'All activities', federails.client_actor_activities_path(@actor) %> <% elsif @actor.profile_url %> <%= link_to 'Visit profile', @actor.profile_url %> <% end %>

Actor details

Federated url: <%= @actor.federated_url %>

Username: <%= @actor.username %>

Inbox URL: <%= @actor.inbox_url %>

Outbox URL: <%= @actor.outbox_url %>

Followers URL: <%= @actor.followers_url %>

Followings URL: <%= @actor.followings_url %>

Profile url: <% if @actor.profile_url %> <%= link_to 'Profile', @actor.profile_url %> <% end %>

Federation address: <%= @actor.at_address %>

<% if @actor.local? && @actor.entity_configuration[:profile_url_method] %> Home page: <%= link_to @actor.entity.send(@actor.entity_configuration[:username_field]), Rails.application.routes.url_helpers.send(@actor.entity_configuration[:profile_url_method], @actor.entity) %> <% elsif @actor.profile_url %> Federation profile URL (JSON): <%= link_to @actor.name, @actor.profile_url %> <% else %> (No homepage) <% end %>


Follows (Who is followed?)

<% if @actor.following_follows.size.zero? %>

<%= @actor.username %> follows nothing

<% end %> <% @actor.following_follows.each do |following| %> <%= render 'federails/client/followings/follow', following: following %> <% end %>

Followers (Who follows?)

<% if @actor.following_followers.size.zero? %>

Nothing follows <%= @actor.username %>

<% end %> <% @actor.following_followers.each do |following| %> <%= render 'federails/client/followings/follower', following: following %> <% end %>
<%# FIXME: Fetch distant content somehow %>

10 last activities

<% activities = @actor.activities.last(10) %> <% if activities.size.zero? %>

No activity to display

<% end %> <% activities.each do |activity| %> <%= render 'federails/client/activities/activity', activity: activity %> <% end %>