mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 08:45:05 +00:00
Follow up to 845b68f9abfad82226a4bd90ce3d7cecd1f99357.
This commit is contained in:
parent
104a9e79f9
commit
55f406bb79
@ -274,7 +274,7 @@ class Upload < ActiveRecord::Base
|
||||
|
||||
remap_scope ||= begin
|
||||
Post.with_deleted
|
||||
.where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\d{1}/'")
|
||||
.where("raw ~ '/uploads/#{db}/\\d+/' OR raw ~ '/uploads/#{db}/original/\\d{1}/'")
|
||||
.select(:raw, :cooked)
|
||||
.all
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user