diff --git a/app/models/photo.rb b/app/models/photo.rb index 9a062809b..9d4aa0cdb 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -66,6 +66,8 @@ class Photo < Post end def url(name = nil) + if self.image.path.include? '.gif' + image.url if remote_photo_path name = name.to_s + '_' if name remote_photo_path + name.to_s + remote_photo_name