FIX: reload the 'post' model to retrive raw field value.
This commit is contained in:
parent
aed683390c
commit
1724c27713
|
@ -570,4 +570,4 @@ DEPENDENCIES
|
|||
webpush
|
||||
|
||||
BUNDLED WITH
|
||||
2.0.1
|
||||
1.17.3
|
||||
|
|
|
@ -452,6 +452,7 @@ task 'posts:missing_uploads' => :environment do
|
|||
upload_id = upload.id
|
||||
DbHelper.remap(UrlHelper.absolute(src), upload.url)
|
||||
|
||||
post.reload
|
||||
post.raw.gsub!(src, upload.url)
|
||||
post.cooked.gsub!(src, upload.url)
|
||||
|
||||
|
|
Loading…
Reference in New Issue