summaryrefslogtreecommitdiff
path: root/views/object.erb
diff options
context:
space:
mode:
Diffstat (limited to 'views/object.erb')
-rw-r--r--views/object.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/object.erb b/views/object.erb
index 3e6e617..6ac9f43 100644
--- a/views/object.erb
+++ b/views/object.erb
@@ -1,6 +1,6 @@
<% @idx +=1
mention = mention @object['attributedTo']
- follow = File.exist?(File.join(FOLLOWING_DIR, "#{mention}.json")) ? 'unfollow' : 'follow'
+ JSON.parse(File.read(FOLLOWING))['orderedItems'].include?(@object['attributedTo']) ? follow='unfollow' : follow='follow'
%>
<div style='margin-left:<%= @object['indent']%>em' id='<%= @idx %>'>
<b><a href='<%= @object['attributedTo'] %>', target='_blank'><%= mention %></a></b>&nbsp;