From 5f927abffe57b25cb6a8281eea81dfef9119f766 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 30 Jun 2010 15:27:35 -0700 Subject: [PATCH] RS, slight clarification in common --- lib/common.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/common.rb b/lib/common.rb index 16d84f2d6..b0bfb9acc 100644 --- a/lib/common.rb +++ b/lib/common.rb @@ -32,12 +32,6 @@ module Diaspora begin object = post.name.camelize.constantize.from_xml post.to_s object.person = parse_owner_from_xml post.to_s #if object.is_a? Post - - # if object.is_a? Comment - # object.post = parse_post_ - # end - - objects << object rescue puts "Not a real type: #{object.to_s}" @@ -50,6 +44,7 @@ module Diaspora objects = parse_objects_from_xml(xml) objects.each do |p| + #This line checks if the sender was in the database, among other things? p.save if p.respond_to?(:person) && !(p.person.nil?) #WTF #p.save if p.respond_to?(:person) && !(p.person == nil) #WTF end