mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user