% @idx +=1
mention = mention @object['attributedTo']
follow = File.exist?(File.join(FOLLOWING_DIR, "#{mention}.json")) ? 'unfollow' : 'follow'
%>
em' id='<%= @idx %>'>
', target='_blank'><%= mention %>
<%= @object['published'] %>
<% unless @dir == 'shared' %>
<%= @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 %>