From da017e7cd9394cb759ee74440c5fd25860063905 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Sun, 10 Sep 2023 20:20:16 +0200 Subject: empty objects fixed --- server.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'server.rb') diff --git a/server.rb b/server.rb index 2eb7de3..f44e8f0 100644 --- a/server.rb +++ b/server.rb @@ -142,6 +142,7 @@ helpers do return unless @object and @object['type'] != 'Person' @object = fetch(@object) if @object.is_a? String and @object.match(/^http/) + return unless @object if @activity['type'] != 'Update' && (@object['id'] and File.readlines(VISITED, chomp: true).include? @object['id']) return end -- cgit v1.2.3