A platform for community discussion. Free, open, simple.
FIX: Handle more cases in `UploadRecovery`.
Guo Xiang Tan1f9799c9797d
diff --git a/lib/upload_recovery.rb b/lib/upload_recovery.rbindex 6ec35141586..5f504608776 100644--- a/lib/upload_recovery.rb+++ b/lib/upload_recovery.rb@@ -4,7 +4,13 @@ class UploadRecoveryenddef 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|+beginanalyzer = PostAnalyzer.new(post.raw, post.topic_id)