return the right url for gifs

This commit is contained in:
maxwell 2011-03-18 18:12:04 -07:00
parent e2f78a8b8c
commit 358fdb9521

View file

@ -66,6 +66,8 @@ class Photo < Post
end end
def url(name = nil) def url(name = nil)
if self.image.path.include? '.gif'
image.url
if remote_photo_path if remote_photo_path
name = name.to_s + '_' if name name = name.to_s + '_' if name
remote_photo_path + name.to_s + remote_photo_name remote_photo_path + name.to_s + remote_photo_name