diff --git a/app/models/photo.rb b/app/models/photo.rb index 5fcb0ea70..153aee214 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -63,6 +63,6 @@ class Photo < Post end def thumb_hash - {:thumb_url => image.url(:thumb_medium), :id => id, :album_id => album_id} + {:thumb_url => url(:thumb_medium), :id => id, :album_id => album_id} end end