Isn't necessary prepare URL if file is saved in S3
This commit is contained in:
parent
8a92f15948
commit
86cbce288b
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class UsersController < ApplicationController
|
|||
params[:profile].delete(:image_url)
|
||||
else
|
||||
url = APP_CONFIG[:pod_url].chop if APP_CONFIG[:pod_url][-1,1] == '/'
|
||||
params[:profile][:image_url] = url + params[:profile][:image_url]
|
||||
params[:profile][:image_url] = url + params[:profile][:image_url] if params[:profile][:image_url].at(0) == '/'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue