<% @idx +=1 mention = mention @object['attributedTo'] JSON.parse(File.read(FOLLOWING))['orderedItems'].include?(@object['attributedTo']) ? follow='unfollow' : follow='follow' @indent = 0 unless @object['inReplyTo'] %>
', target='_blank'><%= mention %> 
' />
<% unless @object['inReplyTo'] %>   <%= @object['published'] %>  
' />
<% end %> <% unless @box == 'shared' %>  
' />
<% end %> <% unless @object['content'].match(/^

/) %>

<% 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 @box == 'shared' %>

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