From 065c790e4e6cab92571059010581125df06a61de Mon Sep 17 00:00:00 2001 From: ilya Date: Thu, 22 Jul 2010 12:23:18 -0700 Subject: [PATCH] not saving in photo receive and logging the saving in common --- app/models/photo.rb | 1 - lib/common.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/photo.rb b/app/models/photo.rb index 0115d9af0..5a5dd1c90 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -29,6 +29,5 @@ class Photo < Post def remote_photo= remote_path image.download! remote_path image.store! - save end end diff --git a/lib/common.rb b/lib/common.rb index 7fd24eb6e..be129d051 100644 --- a/lib/common.rb +++ b/lib/common.rb @@ -51,7 +51,7 @@ module Diaspora User.owner.receive_friend_request(p) #This line checks if the sender was in the database, among other things? elsif p.respond_to?(:person) && !(p.person.nil?) && !(p.person.is_a? User) #WTF - p.save + Rails.logger.info("Saving object with success: #{p.save}") end #p.save if p.respond_to?(:person) && !(p.person == nil) #WTF end