mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
Revert changes to FileStore::S3Store#path_for
in f0620e7118a76a1faea0ca15ac554818f8bb1bcf.
There are some places in the code base that assumes the method should return nil.
This commit is contained in:
@ -98,7 +98,7 @@ class UploadsController < ApplicationController
|
||||
if Discourse.store.internal?
|
||||
send_file_local_upload(upload)
|
||||
else
|
||||
redirect_to Discourse.store.path_for(upload)
|
||||
redirect_to upload.url
|
||||
end
|
||||
else
|
||||
render_404
|
||||
|
Reference in New Issue
Block a user