mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
FIX: Handle more cases in UploadRecovery
.
This commit is contained in:
parent
4b0ac91bfb
commit
1f9799c979
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user