-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Use ID instead of username in ActivityPub API #23802
Comments
|
No, the ActivityPub |
@trwnh Thanks for the reminder. I'll implement this soon in |
…o-gitea#23823) Thanks to @trwnh Close go-gitea#23802 The ActivityPub id is an HTTPS URI that should remain constant, even if the user changes their name.
Feature Description
In #19133 a basic ActivityPub API was added to the router, allowing lookup of an actor document and POSTing to inbox. However, the API as present in Swagger currently depends on the username, which means that username changes are not possible without causing breakages in federation. This should be fixed before federation is ready. Further rationale is included in #19133 (comment) and quoted below for convenience:
Screenshots
Relevant code:
gitea/routers/api/v1/activitypub/person.go
Lines 20 to 36 in 3e8db31
I believe this should be
ctx.ContextUser.ID
or something similar.The text was updated successfully, but these errors were encountered: