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

@ -26,6 +26,8 @@ This page lists changes since Working Draft 3. {{ className: 'lead' }}
- Changed all Collections that can contain remote entities to use URI Collections (eg. [User](/entities/user) `collections.followers`). - Changed all Collections that can contain remote entities to use URI Collections (eg. [User](/entities/user) `collections.followers`).
- Add `collections` field to [Notes](/entities/note). - Add `collections` field to [Notes](/entities/note).
- [Likes Extension](/extensions/likes), [Reactions Extension](/extensions/reactions) and [Share Extension](/extensions/share) now use this field, instead of a custom field in `extensions`. - [Likes Extension](/extensions/likes), [Reactions Extension](/extensions/reactions) and [Share Extension](/extensions/share) now use this field, instead of a custom field in `extensions`.
- Allowed uppercase characters in [User](/entities/user) `username`.
- These are now case-insensitive.
## Since WD 3 ## Since WD 3

View file

@ -23,7 +23,7 @@ For example:
@018ec082-0ae1-761c-b2c5-22275a611771@versia.social @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 ### 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}> <Property name="username" type="string" required={true}>
Alpha-numeric username. Must be unique within the instance. **Must** be treated as changeable by the user. 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>
<Property name="header" type="ContentFormat" required={false} typeLink="/structures/content-format"> <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/*`). A header image for the user's profile. Also known as a cover photo or a banner. Must be an image format (`image/*`).