summaryrefslogtreecommitdiff
path: root/views/item.erb
diff options
context:
space:
mode:
Diffstat (limited to 'views/item.erb')
-rw-r--r--views/item.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/item.erb b/views/item.erb
index ebc632e..8036b39 100644
--- a/views/item.erb
+++ b/views/item.erb
@@ -1,7 +1,9 @@
<div style='margin-left:<%= @item[:indent] %>em' id='<%= @item[:nr] %>'>
<b><a href='<%= @item[:actor_url] %>', target='_blank'><%= @item[:mention] %></a></b>&nbsp;
<% if @item[:mention] != ACCOUNT %>
- <form action='<%= File.join @item[:follow], @item[:mention] %>' method='post'>
+ <form action='/follow' method='post'>
+ <input type='hidden' name='follow' value='<%= @item[:mention] %>' />
+ <input type='hidden' name='redirect' value='/<%= @dir.sub('inbox','') %>#<%= @item[:nr] %>' />
<button><%= @item[:follow].capitalize %></button>
</form>
&nbsp;
@@ -37,7 +39,7 @@
<% end %>
<p>
<button class="reply" data-index='<%= @item[:nr] %>'>Reply</button>
- <form action='/outbox' method='post' id='form<%= @item[:nr] %>' style='display:none;' >
+ <form action='/' method='post' id='form<%= @item[:nr] %>' style='display:none;' >
<input type='hidden' name='to' value='<%= @item[:actor_url] %>' />
<input type='hidden' name='inReplyTo' value='<%= @item[:id] %>' />
<input type='hidden' name='redirect' value='/<%= @dir.sub('inbox','') %>#<%= @item[:nr] %>' />