A platform for community discussion. Free, open, simple.
FIX: reload the 'post' model to retrive raw field value.
Vinoth Kannan1724c27713c3
diff --git a/Gemfile.lock b/Gemfile.lockindex c3d07af8755..a783adf0800 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -570,4 +570,4 @@ DEPENDENCIESwebpushBUNDLED WITH- 2.0.1+ 1.17.3diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rakeindex 0bde9b56ff9..7e756b7bd71 100644--- a/lib/tasks/posts.rake+++ b/lib/tasks/posts.rake@@ -452,6 +452,7 @@ task 'posts:missing_uploads' => :environment doupload_id = upload.idDbHelper.remap(UrlHelper.absolute(src), upload.url)+ post.reloadpost.raw.gsub!(src, upload.url)post.cooked.gsub!(src, upload.url)