Don't send emails to federated users
parent
c64d3fa195
commit
439f6754ac
|
@ -60,6 +60,7 @@ func createPerson(ctx context.Context, person *ap.Person) error {
|
||||||
Email: email,
|
Email: email,
|
||||||
LoginType: auth.Federated,
|
LoginType: auth.Federated,
|
||||||
LoginName: person.GetLink().String(),
|
LoginName: person.GetLink().String(),
|
||||||
|
EmailNotificationsPreference: user_model.EmailNotificationsDisabled,
|
||||||
}
|
}
|
||||||
err = user_model.CreateUser(user)
|
err = user_model.CreateUser(user)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue