mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
retrocompatibilidad
los archivos subidos como archivos locales ya estaban copiados al sitio
This commit is contained in:
parent
79974b7104
commit
d4d1acc8d9
1 changed files with 6 additions and 1 deletions
|
@ -123,7 +123,12 @@ class MetadataFile < MetadataTemplate
|
|||
end
|
||||
|
||||
def static_file_path
|
||||
static_file.blob.service.path_for(static_file.key)
|
||||
case static_file.blob.service.name
|
||||
when :local
|
||||
File.join(site.path, 'public', static_file.key, static_file.filename.to_s)
|
||||
else
|
||||
static_file.blob.service.path_for(static_file.key)
|
||||
end
|
||||
end
|
||||
|
||||
# No hay archivo pero se lo describió
|
||||
|
|
Loading…
Reference in a new issue