<% @idx +=1 mention = mention @object['attributedTo'] JSON.parse(File.read(FOLLOWING))['orderedItems'].include?(@object['attributedTo']) ? follow='unfollow' : follow='follow' %>
em' id='<%= @idx %>'> ', target='_blank'><%= mention %> 
' />
  <%= @object['published'] %>  
' />
  <% unless @dir == 'shared' %>
' /> <% end %>
<%= @object['content'] %> <% if @object['attachment'] @object['attachment'].each do |att| case att['mediaType'] when /audio/ %>
<% when /image/ %>
'>'> <% when /video/ %>
<% else %> <%= att %>
'><%= att['url'] %> <% end %> <% end %> <% end %>

<% unless @dir == 'shared' %>

<% end %>
<% @object['replies'].each do |reply| @object = reply %> <%= erb :object %> <% end %>