Don't send emails to federated users

This commit is contained in:
Anthony Wang 2022-11-27 22:37:28 +00:00
parent c64d3fa195
commit 439f6754ac
No known key found for this signature in database
GPG Key ID: 42A5B952E6DD8D38
1 changed files with 6 additions and 5 deletions

View File

@ -60,6 +60,7 @@ func createPerson(ctx context.Context, person *ap.Person) error {
Email: email,
LoginType: auth.Federated,
LoginName: person.GetLink().String(),
EmailNotificationsPreference: user_model.EmailNotificationsDisabled,
}
err = user_model.CreateUser(user)
if err != nil {