Restrict preferredUsername #1128

Closed
opened 2023-01-04 16:54:14 +00:00 by KitaitiMakoto · 1 comment

Mastodon restrict characters available for refererredUsername with this regex:

USERNAME_RE   = /[a-z0-9_]+([a-z0-9_\.-]+[a-z0-9_]+)?/i

17f79082b0/app/models/account.rb (L64)

We need reject loose name for users, blogs and instances, or convert them to ristricted version when talk in ActivityPub.

Mastodon restrict characters available for `refererredUsername` with this regex: ```ruby USERNAME_RE = /[a-z0-9_]+([a-z0-9_\.-]+[a-z0-9_]+)?/i ``` https://github.com/mastodon/mastodon/blob/17f79082b098e05b68d6f0d38fabb3ac121879a9/app/models/account.rb#L64 We need reject loose name for users, blogs and instances, or convert them to ristricted version when talk in ActivityPub.
KitaitiMakoto added this to the 0.8.0 milestone 2023-01-04 16:54:14 +00:00
KitaitiMakoto added the
A: Federation
label 2023-01-04 16:54:14 +00:00
Author
Owner

For user creation, already restricted.

For user creation, already restricted.
KitaitiMakoto changed title from Restrict preferredUsername to Ristrict preferredUsername 2023-01-04 17:42:13 +00:00
KitaitiMakoto changed title from Ristrict preferredUsername to Restrict preferredUsername 2023-01-04 17:42:26 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#1128
No description provided.