mirror of
https://github.com/discourse/discourse.git
synced 2026-03-04 01:15:08 +08:00
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) |
||
|---|---|---|
| .. | ||
| base.rb | ||
| discourse_merger.rb | ||
| generic_bulk.rb | ||
| phpbb_postgresql.rb | ||
| uploads_importer.rb | ||
| uploads_importer.yml | ||
| vanilla.rb | ||
| vbulletin.rb | ||
| vbulletin5.rb | ||