diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb index 8caf5dafecd..9aa8513d31d 100644 --- a/lib/backup_restore/restorer.rb +++ b/lib/backup_restore/restorer.rb @@ -144,6 +144,8 @@ module BackupRestore end def notify_user + return if @success && @user_id == Discourse::SYSTEM_USER_ID + if user = User.find_by_email(@user_info[:email]) log "Notifying '#{user.username}' of the end of the restore..." status = @success ? :restore_succeeded : :restore_failed