Add Camo for profile images
This commit is contained in:
parent
613f2d1142
commit
0a619749f2
1 changed files with 10 additions and 1 deletions
|
|
@ -74,7 +74,16 @@ class Profile < ActiveRecord::Base
|
||||||
else
|
else
|
||||||
self[:image_url]
|
self[:image_url]
|
||||||
end
|
end
|
||||||
result || ActionController::Base.helpers.image_path('user/default.png')
|
|
||||||
|
unless result
|
||||||
|
ActionController::Base.helpers.image_path('user/default.png')
|
||||||
|
else
|
||||||
|
if AppConfig.privacy.camo.proxy_remote_pod_images?
|
||||||
|
Diaspora::Camo::image_url(result)
|
||||||
|
else
|
||||||
|
result
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def from_omniauth_hash(omniauth_user_hash)
|
def from_omniauth_hash(omniauth_user_hash)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue