feat: Allow uppercase letters in usernames, make them case-insensitive

This commit is contained in:
Jesse Wierzbinski 2024-11-24 18:03:25 +01:00
parent aba8ff170b
commit a88272c666
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,7 @@ For example:
@018ec082-0ae1-761c-b2c5-22275a611771@versia.social
```
This is similar to an email address or an ActivityPub address.
This is similar to an email address or an ActivityPub address. Usernames are case-insensitive.
### Identifier
@ -65,7 +65,7 @@ Instance **must** be the host of the instance the user is on (hostname with opti
<Property name="username" type="string" required={true}>
Alpha-numeric username. Must be unique within the instance. **Must** be treated as changeable by the user.
Can only contain the following characters: `a-z` (lowercase), `0-9`, `_` and `-`. Should be limited to reasonable lengths.
Can only contain the following characters: `a-z`, `A-Z` (case-insensitive), `0-9`, `_` and `-`. Should be limited to reasonable lengths.
</Property>
<Property name="header" type="ContentFormat" required={false} typeLink="/structures/content-format">
A header image for the user's profile. Also known as a cover photo or a banner. Must be an image format (`image/*`).