[bounty] Google+ (private ) communities: export screenscraper + importer

Emails to .invalid addresses are now skipped: FEATURE: Skip sending emails to domains on the `.invalid` TLD (#7162) · discourse/discourse@420c6f8 · GitHub

We don’t always replace emails for social logins, because users might deliberately want different email addresses for different services. However, in this case it would certainly be better to replace an invalid email address with a real one, so I’ve created this PR which is pending review: FEATURE: Fetch email from auth provider if current user email is invalid by davidtaylorhq · Pull Request #7163 · discourse/discourse · GitHub. As part of this, users will automatically be activated.

So, the best state for you to import users is active: false, email:"something@something.invalid", and there is no need to mess with the bounce score.

Also, you may have noticed that we migrated google_user_infos into user_associated_accounts, so you will need to replace GoogleUserInfo references with UserAssociatedAccount.where(provider_name:"google_oauth2")

5 Likes