Add Camo for remote images
This commit is contained in:
parent
5c9cc49363
commit
5bcd5087bf
1 changed files with 6 additions and 1 deletions
|
|
@ -114,7 +114,12 @@ class Photo < ActiveRecord::Base
|
|||
def url(name = nil)
|
||||
if remote_photo_path
|
||||
name = name.to_s + '_' if name
|
||||
remote_photo_path + name.to_s + remote_photo_name
|
||||
image_url = remote_photo_path + name.to_s + remote_photo_name
|
||||
if AppConfig.privacy.camo.proxy_remote_pod_images?
|
||||
Diaspora::Camo::image_url(image_url)
|
||||
else
|
||||
image_url
|
||||
end
|
||||
elsif processed?
|
||||
processed_image.url(name)
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue