From 358fdb95217a816eed82d992fb44528bff0ffafd Mon Sep 17 00:00:00 2001 From: maxwell Date: Fri, 18 Mar 2011 18:12:04 -0700 Subject: [PATCH] return the right url for gifs --- app/models/photo.rb | 2 ++ 1 file changed, 2 insertions(+) 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