mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Lots of ugprades to the Disqus importer script
This commit is contained in:
@ -274,7 +274,7 @@ class ImportScripts::Base
|
||||
merge = opts.delete(:merge)
|
||||
post_create_action = opts.delete(:post_create_action)
|
||||
|
||||
existing = User.where(email: opts[:email].downcase, username: opts[:username]).first
|
||||
existing = User.where("email = ? OR username = ?", opts[:email].downcase, opts[:username]).first
|
||||
return existing if existing && (merge || existing.custom_fields["import_id"].to_i == import_id.to_i)
|
||||
|
||||
bio_raw = opts.delete(:bio_raw)
|
||||
|
Reference in New Issue
Block a user