diff --git a/app/models/upload.rb b/app/models/upload.rb index 202fc570b27..87bc14d39da 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -274,7 +274,7 @@ class Upload < ActiveRecord::Base remap_scope ||= begin Post.with_deleted - .where("raw ~ '/uploads/#{db}/\\d+/'") + .where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\d{1}/'") .select(:raw, :cooked) .all end