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
Signed by: a
GPG key ID: 42A5B952E6DD8D38

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 {