diff --git a/services/federation/federation_service.go b/services/federation/federation_service.go index 3c7ca1ef6f..94f1d78811 100644 --- a/services/federation/federation_service.go +++ b/services/federation/federation_service.go @@ -189,7 +189,7 @@ func CreateUserFromAP(ctx context.Context, personID fm.PersonID, federationHostI return nil, nil, err } newUser := user.User{ - LowerName: strings.ToLower(person.PreferredUsername.String()), + LowerName: strings.ToLower(name), Name: name, FullName: fullName, Email: email,