wordpress-activitypub
wordpress-activitypub copied to clipboard
Usernames with spaces lead to problems with Mastodon usernames
Quick summary
Example -- spaces are valid in username in WordPress -- so a username of "First Last" in WP would lead to a Mastodon username of @First [email protected] -- which is a bit of an issue for some Mastodon clients.
Suggestion -- escape the usernames to make sure they make valid Mastodon usernames -- like @[email protected]
Steps to reproduce
Obvious
What you expected to happen
See above
What actually happened
See above
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Logs or notes
No response
Now that WP user names need portability, maybe AP account creation should sanitize using $strict
https://developer.wordpress.org/reference/functions/sanitize_user/
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.