not saving in photo receive and logging the saving in common
This commit is contained in:
parent
a1a8fc1ea4
commit
065c790e4e
2 changed files with 1 additions and 2 deletions
|
|
@ -29,6 +29,5 @@ class Photo < Post
|
|||
def remote_photo= remote_path
|
||||
image.download! remote_path
|
||||
image.store!
|
||||
save
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue