FEATURE: Allow plugins to manipulate site settings during backup restore

FEATURE: Allow plugins to manipulate site settings during backup restore

diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb
index cf5aa29..b67b2b5 100644
--- a/lib/backup_restore/restorer.rb
+++ b/lib/backup_restore/restorer.rb
@@ -412,6 +412,8 @@ module BackupRestore
       log "Reloading site settings..."
       SiteSetting.refresh!
 
+      DiscourseEvent.trigger(:site_settings_restored)
+
       if @disable_emails && SiteSetting.disable_emails == 'no'
         log "Disabling outgoing emails for non-staff users..."
         user = User.find_by_email(@user_info[:email]) || Discourse.system_user

GitHub sha: 1f118b13

2 Likes