summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2024-02-01 12:23:31 +0100
committerpdp8 <pdp8@pdp8.info>2024-02-01 12:23:31 +0100
commit4586c63bd86fe3dad403086b15d5b74b6d67fc92 (patch)
tree41387860e635820738f27071a2d668212d1774d7 /views
parent17fe7f0d25bc99285ddc3dbc153f1f3af9dca335 (diff)
general outbox routes
Diffstat (limited to 'views')
-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 %>