Fixes #1862. Very old posts with transparent backgrounds used black instead of white backgrounds in thumbnails. This was changed in #603 (see also #1239), but the thumbnails were never regenerated.
8 lines
200 B
Ruby
Executable File
8 lines
200 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require_relative "../../config/environment"
|
|
|
|
Post.system_tag_match("transparent_background id:<=1361925").find_each do |post|
|
|
post.regenerate_later!("resizes", User.system)
|
|
end
|