diff options
Diffstat (limited to 'server.rb')
-rw-r--r-- | server.rb | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -138,15 +138,10 @@ helpers do end def save_inbox_object - @object = fetch(@object) if @object.is_a? String and @object.match(/^http/) - if @object['type'] and ACTIVITIES.include? @object['type'].downcase.to_sym - @activity = @object - handle_activity - return - end - # @object = @object['object'] if @object['type'] == 'Like' # lemmy likes + @object = @object['object'] if @object['type'] and ACTIVITIES.include? @object['type'].downcase.to_sym # lemmy return unless @object and @object['type'] != 'Person' + @object = fetch(@object) if @object.is_a? String and @object.match(/^http/) if @activity['type'] != 'Update' && (@object['id'] and File.readlines(VISITED, chomp: true).include? @object['id']) return end |