not saving in photo receive and logging the saving in common

This commit is contained in:
ilya 2010-07-22 12:23:18 -07:00
parent a1a8fc1ea4
commit 065c790e4e
2 changed files with 1 additions and 2 deletions

View file

@ -29,6 +29,5 @@ class Photo < Post
def remote_photo= remote_path
image.download! remote_path
image.store!
save
end
end

View file

@ -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