DEV: include local uploads while finding missing uploads

DEV: include local uploads while finding missing uploads

in rake task ‘posts:missing_uploads’

diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake
index c982d5d..1be8289 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

GitHub sha: 338b927f

1 Like