Took out a couple more references to User.owner

This commit is contained in:
Raphael 2010-08-16 11:07:18 -07:00
parent 3efa36587a
commit eb793ea129

View file

@ -37,7 +37,7 @@ class Photo < Post
end
def remote_photo
@remote_photo ||= User.owner.url.chop + image.url
@remote_photo ||= self.person.url.chop + image.url
end
def remote_photo= remote_path
@ -47,10 +47,10 @@ class Photo < Post
end
def ensure_user_picture
user = User.owner
if user.profile.image_url == image.url(:thumb_medium)
users = Person.all('profile.image_url' => image.url(:thumb_medium) )
users.each{ |user|
user.profile.update_attributes!(:image_url => nil)
end
}
end
def thumb_hash