Don't send emails to federated users
This commit is contained in:
parent
c64d3fa195
commit
439f6754ac
|
@ -55,11 +55,12 @@ func createPerson(ctx context.Context, person *ap.Person) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
user := &user_model.User{
|
user := &user_model.User{
|
||||||
Name: name,
|
Name: name,
|
||||||
FullName: person.Name.String(), // May not exist!!
|
FullName: person.Name.String(), // May not exist!!
|
||||||
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 {
|
||||||
|
|
Reference in a new issue