diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index c982d5d38bb..1be8289dcdf 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -395,7 +395,7 @@ end def missing_uploads old_scheme_upload_count = 0 - missing = Post.find_missing_uploads do |post, src, path, sha1| + missing = Post.find_missing_uploads(include_local_upload: true) do |post, src, path, sha1| next if sha1.present? upload_id = nil