From 7f9649b467e55877f9ef7cf2c2b99ade57da19bd Mon Sep 17 00:00:00 2001 From: cocococosti Date: Mon, 19 Feb 2024 17:37:55 -0400 Subject: [PATCH] Add acting user to suspended users --- script/bulk_import/generic_bulk.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/bulk_import/generic_bulk.rb b/script/bulk_import/generic_bulk.rb index 67bdcb71915..fc11305ced7 100644 --- a/script/bulk_import/generic_bulk.rb +++ b/script/bulk_import/generic_bulk.rb @@ -1506,11 +1506,12 @@ class BulkImport::Generic < BulkImport::Base create_user_histories(user_histories) do |row| user_id = user_id_from_imported_id(row["id"]) + acting_user_id = user_id_from_imported_id(row["acting_user_id"]) next if user_id && existing_user_ids.include?(user_id) { action: action_id, - acting_user_id: Discourse::SYSTEM_USER_ID, + acting_user_id: acting_user_id || Discourse::SYSTEM_USER_ID, target_user_id: user_id, details: row["reason"], }