2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/script/bulk_import
Ruben Oussoren ba0a319dee
FIX email deduplication incorrectly replacing valid user emails (#37824)
The process_user_email method was replacing valid emails with random
@email.invalid addresses because the deduplication check treated a
user's own email as a duplicate.

The @emails hash is populated during import_users, so when
import_user_emails runs later, the check !@emails.has_key?(email) fails
for the user's own email, triggering the random_email fallback.

Updated the condition to allow an email if it belongs to the same user:
(!@emails.has_key?(email) || @emails[email] == user_id)
2026-02-13 16:42:16 -05:00
..
base.rb FIX email deduplication incorrectly replacing valid user emails (#37824) 2026-02-13 16:42:16 -05:00
discourse_merger.rb DEV: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
generic_bulk.rb DEV: Replace Ruby numbered parameters by it where applicable (#37810) 2026-02-13 13:59:07 +01:00
phpbb_postgresql.rb DEV: Bump rubocop_discourse (#29608) 2024-11-06 06:27:49 +08:00
uploads_importer.rb FIX: Store context for failed uploads (#33546) 2025-07-24 12:05:32 +00:00
uploads_importer.yml DEV: Update default config for uploads_importer (#31208) 2025-02-11 16:33:15 +01:00
vanilla.rb FIX: Use a valid value for disabling backups using backup_frequency (#34245) 2025-08-12 13:19:56 +08:00
vbulletin.rb FIX: Use a valid value for disabling backups using backup_frequency (#34245) 2025-08-12 13:19:56 +08:00
vbulletin5.rb FIX: Use a valid value for disabling backups using backup_frequency (#34245) 2025-08-12 13:19:56 +08:00