mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: optimized images fail if source is remote and S3 is disabled
This commit is contained in:
parent
296b8b1a35
commit
56f077db69
4 changed files with 38 additions and 45 deletions
|
@ -1,4 +1,4 @@
|
|||
require 'file_store/base_store'
|
||||
require_dependency 'file_store/base_store'
|
||||
|
||||
module FileStore
|
||||
|
||||
|
@ -41,6 +41,7 @@ module FileStore
|
|||
end
|
||||
|
||||
def path_for(upload)
|
||||
return unless upload && has_been_uploaded?(upload.url)
|
||||
"#{public_dir}#{upload.url}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue