diff --git a/app/views/app_data/_nonprofit.jbuilder b/app/views/app_data/_nonprofit.jbuilder index de5be506..389ddd13 100644 --- a/app/views/app_data/_nonprofit.jbuilder +++ b/app/views/app_data/_nonprofit.jbuilder @@ -9,5 +9,5 @@ json.extract! nonprofit, :id, :name, #basics :no_anon #options json.url nonprofit_path(nonprofit) json.logo do - json.normal url_for(nonprofit.logo_by_size(:normal)) + json.normal rails_storage_proxy_url(nonprofit.logo_by_size(:normal)) end \ No newline at end of file diff --git a/app/views/app_data/_profile.jbuilder b/app/views/app_data/_profile.jbuilder index 9807308c..9ff3ae00 100644 --- a/app/views/app_data/_profile.jbuilder +++ b/app/views/app_data/_profile.jbuilder @@ -4,4 +4,4 @@ # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE json.extract! profile, :id, :name, :country, :picture json.url profile_path(profile) -json.pic_tiny url_for(profile.picture_by_size(:tiny)) if profile.picture.attached? +json.pic_tiny rails_storage_proxy_url(profile.picture_by_size(:tiny)) if profile.picture.attached? diff --git a/app/views/campaigns/_create.jbuilder b/app/views/campaigns/_create.jbuilder index 2c95c4f8..827b465a 100644 --- a/app/views/campaigns/_create.jbuilder +++ b/app/views/campaigns/_create.jbuilder @@ -12,15 +12,15 @@ json.url campaign_url(nonprofit) if campaign.main_image.attached? json.main_image do - json.full url_for(campaign.main_image) - json.normal url_for(campaign.main_image_by_size(:normal)) - json.thumb url_for(campaign.main_image_by_size(:thumb)) + json.full rails_storage_proxy_url(campaign.main_image) + json.normal rails_storage_proxy_url(campaign.main_image_by_size(:normal)) + json.thumb rails_storage_proxy_url(campaign.main_image_by_size(:thumb)) end end if campaign.background_image.attached? json.background_image do - json.full url_for(campaign.background_image) - json.normal url_for(campaign.background_image_by_size(:normal)) + json.full rails_storage_proxy_url(campaign.background_image) + json.normal rails_storage_proxy_url(campaign.background_image_by_size(:normal)) end end \ No newline at end of file diff --git a/app/views/campaigns/_settings_modal.html.erb b/app/views/campaigns/_settings_modal.html.erb index 915cbbbb..c2c54715 100644 --- a/app/views/campaigns/_settings_modal.html.erb +++ b/app/views/campaigns/_settings_modal.html.erb @@ -69,7 +69,7 @@
Used for previews and social media