mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Merge pull request #743 from sjml/patch-1
Fixing Amazon uploads to not be hardcoded to https
This commit is contained in:
commit
8c8706a711
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class Upload < ActiveRecord::Base
|
|||
public: true,
|
||||
content_type: file.content_type)
|
||||
upload.width, upload.height = ImageSizer.resize(*image_info.size)
|
||||
upload.url = "https://#{SiteSetting.s3_upload_bucket}.s3.amazonaws.com#{path}/#{remote_filename}"
|
||||
upload.url = "//#{SiteSetting.s3_upload_bucket}.s3.amazonaws.com#{path}/#{remote_filename}"
|
||||
|
||||
upload.save
|
||||
|
||||
|
|
Loading…
Reference in a new issue