-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Add Webfinger endpoint #19462
Add Webfinger endpoint #19462
Conversation
This is a great start, but I think there are still a few additions to make to match what Mastodon and PeerTube currently do. We'll need to add another item to |
Towards federation! 🚀 I'm interested in how you/the Gitea devs are planning to deal with Issues and Pull Requests. Gitea and all GitHub-like forges support subscribing to issues and pull requests, which will send notifications to the user about issue/PR activity. This is different from watching the repository for all activities. Modelling this in ActivityPub: Issues, Pull Requests and Repositories when modelled as ActivityPub group actors, can allow actors(users) to follow and receive notifications on activity, very much like how subscribe works. If this approach is correct, then we would have to deal with namespace collisions, how can an issue/PR/repositoriy share the same namespace as usernames? I'm part of ForgeFlux, a software project involved in implementing federation for popular forges using APIs. Our implementation deals with namespace collisions using special characters. For more information, kindly see our webfinger implementation docs. |
@realaravinth if you are interested in this, a summary can be found at #18240 and the focabulary is in work by ForgeFed (#14186) |
ForgeFed models issues, PRs, and repositories using the @realaravinth Is there a specific reason for using |
I did not add them because they are not there at the moment. The ActivityPub PR should add that. |
Sounds good, I'll add those fields to my PR #19133. Edit: Done in 43d82e1c582262d15222f8f3370ef95d9c65ac6c |
Is it intended that private users now can not participate in federation? |
Codecov Report
@@ Coverage Diff @@
## main #19462 +/- ##
==========================================
- Coverage 47.51% 47.35% -0.16%
==========================================
Files 944 952 +8
Lines 131549 132433 +884
==========================================
+ Hits 62500 62715 +215
- Misses 61541 62159 +618
- Partials 7508 7559 +51
Continue to review full report at Codecov.
|
By "private", do you mean their email is private? If so, I think they should still participate in federation. Edit: I misunderstood the question. I agree that private users should not participate in federation. |
hmm event. add 1 or 2 calls from an integration test - just to make sure it stays working |
@6543: thank you, subscribed to both issues :)
@Ta180m: ForgeFed Ticket inherits from
IMHO inheriting from
Nothing in particular. I needed delimiting character that wasn't a part of the PRECIS framework(RFC8264) IdenfifierClass so that a valid username entered by a user won't contain the delimiting character and I saw lemmy using it for representing communities :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments and questions.
Still have the question why not use url.Prase
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still lgtm
* giteaofficial/main: Use better message for consistency check (go-gitea#19672) Fix new release from tags list UI (go-gitea#19670) Update go deps (go-gitea#19665) [doctor] Add check/fix for bogus action rows (go-gitea#19656) [skip ci] Updated translations via Crowdin Add tooltip to pending PR comments (go-gitea#19662) Add Webfinger endpoint (go-gitea#19462) Update documentation to disable duration settings with -1 instead of 0 (go-gitea#19647) Set the LastModified header for raw files (go-gitea#18356) Don't select join table's columns (go-gitea#19660)
This adds the [Webfinger](https://webfinger.net/) endpoint for federation. Supported schemes are `acct` and `mailto`. The profile and avatar url are returned as metadata.
This PR adds the Webfinger endpoint for federation.
Supported schemes are
acct
andmailto
. The profile and avatar url are returned as metadata.