Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make username configurable #915

Draft
wants to merge 9 commits into
base: trunk
Choose a base branch
from
Draft

Make username configurable #915

wants to merge 9 commits into from

Conversation

pfefferle
Copy link
Member

@pfefferle pfefferle commented Sep 30, 2024

At least for the WebFinger ID

Fixes #141 #28 #71

Screenshot:

Screenshot 2024-09-30 at 12 58 40

at least for the WebFinger ID
Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am personally not sold on the need of changing the username but looks like there are many requests. It looks like this does the requested job.

includes/class-admin.php Outdated Show resolved Hide resolved
Comment on lines +101 to +105
'key' => 'activitypub_identifier',
'value' => $username,
'compare' => '=',
),
array(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably not worth addressing but it could happen that you assign the identifier to a non-existent user at the time, and then register that username afterwards. In this scenario I believe the result here is undefined since you just pick the first result in the code below.

@pfefferle pfefferle marked this pull request as draft October 2, 2024 16:04
@mattwiebe
Copy link
Contributor

This feels like unnecessary complexity? Can't these users just use the Blog user, which is already configurable, instead?

@pfefferle
Copy link
Member Author

@mattwiebe the renaming itself is pretty straight forward, but the collision detection is a bit complex. I think I will postpone it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Usernames vs. Nicknames
3 participants