From 7f38d569d8dd2491d1b9b8bc0ff1ae016b02f34f Mon Sep 17 00:00:00 2001 From: pdp8 Date: Sun, 2 Jul 2023 00:37:33 +0200 Subject: activity sending/storage unified (send_signed -> outbox) --- views/object.erb | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'views/object.erb') diff --git a/views/object.erb b/views/object.erb index 744a518..3e6e617 100644 --- a/views/object.erb +++ b/views/object.erb @@ -1,26 +1,31 @@ - -<% mention = mention @object['attributedTo'] - following_path = File.join(FOLLOWING, "#{mention}.json") - follow = File.exist?(following_path) ? 'unfollow' : 'follow' +<% @idx +=1 + mention = mention @object['attributedTo'] + follow = File.exist?(File.join(FOLLOWING_DIR, "#{mention}.json")) ? 'unfollow' : 'follow' %> -
em' id='<%= @object['id'] %>'> +
em' id='<%= @idx %>'> ', target='_blank'><%= mention %> 
' /> - ' /> +
  + <%= @object['published'] %> +  
' /> - ' /> + +
  -
+ <% unless @dir == 'shared' %> + ' /> - ' /> - + + + + <% end %>
<%= @object['content'] %> <% if @object['attachment'] @@ -39,16 +44,18 @@ <% end %> <% end %>

- -

' style='display:none;' > + <% unless @dir == 'shared' %> + + ' /> ' /> - ' /> +
- +
+ <% end %>
<% @object['replies'].each do |reply| @object = reply %> -- cgit v1.2.3