FIX: reload the 'post' model to retrive raw field value.

This commit is contained in:
Vinoth Kannan 2019-04-25 02:09:27 +05:30
parent aed683390c
commit 1724c27713
2 changed files with 2 additions and 1 deletions

View File

@ -570,4 +570,4 @@ DEPENDENCIES
webpush
BUNDLED WITH
2.0.1
1.17.3

View File

@ -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)