summaryrefslogtreecommitdiff
path: root/views/outbox.erb
diff options
context:
space:
mode:
Diffstat (limited to 'views/outbox.erb')
-rw-r--r--views/outbox.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/outbox.erb b/views/outbox.erb
index 23adb19..d5e3db5 100644
--- a/views/outbox.erb
+++ b/views/outbox.erb
@@ -10,9 +10,9 @@
<h1><a href="https://social.pdp8.info/pdp8">pdp8@social.pdp8.info</a></h1>
music, pictures and videos: <a href="https://pdp8.info">https://pdp8.info</a>
<p>
- <% if @type == 'create' %>
+ <% if @activity == 'create' %>
<h2>posts&nbsp;|&nbsp;<a href='/outbox/announce'>boosts</a></h2>
- <% elsif @type == 'announce' %>
+ <% elsif @activity == 'announce' %>
<h2><a href='/outbox/create'>posts</a>&nbsp;|&nbsp;boosts</h2>
<% end %>
<% @objects.each do |object|
@@ -29,7 +29,7 @@
when /audio/ %>
<br><audio controls=''><source src='<%= att['url'] %>' type='<%= att['mediaType'] %>'></audio>
<% when /image/ %>
- <br><a href='<%= att['url'] %>'><img src='<%= att['url'] %>' alt='<%= att['name'].gsub("'",'&apos;').gsub('"','&quot;') if att['name'] %>'></a>
+ <br><a href='<%= att['url'] %>'><img loading='lazy' width='1024' height='768' alt='<%= att['name'].gsub("'",'&apos;').gsub('"','&quot;') if att['name'] %>' src='<%= att['url'] %>'></a>
<% when /video/ %>
<br><video controls=''><source src='<%= att['url'] %>' type='<%= att['mediaType'] %>'></video>
<% end %>