FIX: Optimized site icons were missing after backup restore

FIX: Optimized site icons were missing after backup restore

diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb
index d53d971..48c8f08 100644
--- a/lib/backup_restore/restorer.rb
+++ b/lib/backup_restore/restorer.rb
@@ -452,6 +452,9 @@ module BackupRestore
     end
 
     def generate_optimized_images
+      log 'Optimizing site icons...'
+      SiteIconManager.ensure_optimized!
+
       log 'Posts will be rebaked by a background job in sidekiq. You will see missing images until that has completed.'
       log 'You can expedite the process by manually running "rake posts:rebake_uncooked_posts"'

GitHub sha: 2487e01c

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: