mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Handle more cases in UploadRecovery.
This commit is contained in:
@@ -4,7 +4,13 @@ class UploadRecovery
|
||||
end
|
||||
|
||||
def recover(posts = Post)
|
||||
posts.where("raw LIKE '%upload:\/\/%' OR raw LIKE '%href=%'").find_each do |post|
|
||||
posts.where("
|
||||
raw LIKE '%upload:\/\/%'
|
||||
OR raw LIKE '%href=%'
|
||||
OR raw LIKE '%src=%'
|
||||
OR raw LIKE '%[img]%'
|
||||
").find_each do |post|
|
||||
|
||||
begin
|
||||
analyzer = PostAnalyzer.new(post.raw, post.topic_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user