FEATURE: fix_relative_upload_links now multisite safety

This also finds `<img src="/uploads/xyz` HTML images in raw and corrects
them. Also handles some cross multisite recovery and provides better output
This commit is contained in:
Sam Saffron
2019-05-23 15:09:16 +10:00
parent 96e58125a7
commit a5ce9cb470
2 changed files with 58 additions and 4 deletions

View File

@ -471,7 +471,7 @@ def missing_uploads
missing[:post_uploads].each do |id, uploads|
post = Post.with_deleted.find_by(id: id)
if post
puts "#{post.url} missing #{uploads.join(", ")}"
puts "#{post.full_url} missing #{uploads.join(", ")}"
else
puts "could not find post #{id}"
end