return the right url for gifs
This commit is contained in:
parent
e2f78a8b8c
commit
358fdb9521
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue