From 443b6fd42abf9cb1392125199cca449702898327 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Fri, 6 Oct 2023 16:58:15 +0200 Subject: html create/announce outboxes separated --- views/outbox.erb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'views') diff --git a/views/outbox.erb b/views/outbox.erb index 7b95439..0efb78c 100644 --- a/views/outbox.erb +++ b/views/outbox.erb @@ -9,20 +9,21 @@

pdp8@social.pdp8.info

music, pictures and videos: https://pdp8.info - <% @activities.each do |activity| - file, @object = find_object activity['object']['id'] - if @object - mention = mention @object['attributedTo'] %> +

+ <% if @type == 'create' %> +

posts | boosts

+ <% elsif @type = 'announce' %> +

posts | boosts

+ <% end %> + <% @objects.each do |object| + mention = mention object['attributedTo'] %>
-

' target='_blank'><%= mention %>  - <%= @object['published'] %> - <% if activity['type'] == 'Announce' %> -  (announced) - <% end %> +

' target='_blank'><%= mention %>  + <%= object['published'] %>

- <%= @object['content']%> - <% if @object['attachment'] - @object['attachment'].each do |att| + <%= object['content']%> + <% if object['attachment'] + object['attachment'].each do |att| case att['mediaType'] when /audio/ %>
@@ -34,7 +35,6 @@ <% end %> <% end %>

- <% end %> <% end %> -- cgit v1.2.3