wordpress-activitypub icon indicating copy to clipboard operation
wordpress-activitypub copied to clipboard

Usernames with spaces lead to problems with Mastodon usernames

Open beergeekdotcom opened this issue 2 years ago • 1 comments

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

beergeekdotcom avatar Oct 16 '23 00:10 beergeekdotcom

Now that WP user names need portability, maybe AP account creation should sanitize using $strict

https://developer.wordpress.org/reference/functions/sanitize_user/

jazmichaelking avatar Nov 09 '23 13:11 jazmichaelking

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.

github-actions[bot] avatar Mar 09 '24 01:03 github-actions[bot]