diff --git a/Gemfile.lock b/Gemfile.lock index c3d07af8755..a783adf0800 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -570,4 +570,4 @@ DEPENDENCIES webpush BUNDLED WITH - 2.0.1 + 1.17.3 diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index 0bde9b56ff9..7e756b7bd71 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -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)