From 4ca1c5555f18703d1dac673b1a77d1c919fb4787 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Mon, 17 Jul 2023 19:09:02 +0200 Subject: write to json instead of direcories --- views/object.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/object.erb') 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' %>
em' id='<%= @idx %>'> ', target='_blank'><%= mention %>  -- cgit v1.2.3