mirror of
https://github.com/discourse/discourse.git
synced 2025-04-24 01:24:26 +08:00
FIX: upload:migrate_to_s3
rake task not remapping properly.
This commit is contained in:
parent
6b7bb543af
commit
918633aa12
@ -257,7 +257,10 @@ def migrate_to_s3
|
|||||||
end
|
end
|
||||||
|
|
||||||
# remap the URL
|
# remap the URL
|
||||||
|
DbHelper.remap(UrlHelper.absolute(from), Discourse.store.cdn_url(to))
|
||||||
|
DbHelper.remap(UrlHelper.absolute_without_cdn(from), Discourse.store.cdn_url(to))
|
||||||
DbHelper.remap(from, to)
|
DbHelper.remap(from, to)
|
||||||
|
upload.optimized_images.destroy_all
|
||||||
|
|
||||||
putc "."
|
putc "."
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user