diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index 138791deefd..6f441068593 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -675,9 +675,10 @@ def correct_inline_uploads dry_run = (ENV["DRY_RUN"].nil? ? true : ENV["DRY_RUN"] != "false") verbose = ENV["VERBOSE"] - scope = Post.joins(:post_uploads) - .distinct("posts.id") - .where("raw LIKE '%class=\"attachment%' OR raw LIKE '%