1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-21 08:31:27 -05:00

Set LowerName to name with lower case

This commit is contained in:
Clemens 2024-05-16 10:55:17 +02:00
parent 6457ace318
commit a9c00d49da

View file

@ -189,7 +189,7 @@ func CreateUserFromAP(ctx context.Context, personID fm.PersonID, federationHostI
return nil, nil, err return nil, nil, err
} }
newUser := user.User{ newUser := user.User{
LowerName: strings.ToLower(person.PreferredUsername.String()), LowerName: strings.ToLower(name),
Name: name, Name: name,
FullName: fullName, FullName: fullName,
Email: email, Email: email,