summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'server.rb')
-rw-r--r--server.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/server.rb b/server.rb
index 68c51e1..2eb7de3 100644
--- a/server.rb
+++ b/server.rb
@@ -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