summaryrefslogtreecommitdiff
path: root/views/outbox.erb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-12-20 11:20:50 +0100
committerpdp8 <pdp8@pdp8.info>2023-12-20 11:20:50 +0100
commit88518c5a4fa4fa9d841bb0d1c8add9fa2234530c (patch)
tree8a808ff352841779637c6bd1aa171e94c2c55cdf /views/outbox.erb
parent443b6fd42abf9cb1392125199cca449702898327 (diff)
follow, announce, delete fixed
Diffstat (limited to 'views/outbox.erb')
-rw-r--r--views/outbox.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/outbox.erb b/views/outbox.erb
index 0efb78c..23adb19 100644
--- a/views/outbox.erb
+++ b/views/outbox.erb
@@ -12,10 +12,11 @@
<p>
<% if @type == 'create' %>
<h2>posts&nbsp;|&nbsp;<a href='/outbox/announce'>boosts</a></h2>
- <% elsif @type = 'announce' %>
+ <% elsif @type == 'announce' %>
<h2><a href='/outbox/create'>posts</a>&nbsp;|&nbsp;boosts</h2>
<% end %>
<% @objects.each do |object|
+ object = fetch(object) if object.is_a? String
mention = mention object['attributedTo'] %>
<div class='pdp8'>
<p><b><a href='<%= object['attributedTo'] %>' target='_blank'><%= mention %></a></b>&nbsp;