manyfold icon indicating copy to clipboard operation
manyfold copied to clipboard

Initial federails integration

Open matthewbadeau opened this issue 1 year ago • 2 comments

Checklist

🚨 Please review the guidelines for contributing to this repository. 🚨

  • [x] Make sure you are making a pull request against our main branch (left side)
  • [x] Check that that your branch is up to date with our main.
  • [x] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your main!
  • [x] Check that the tests and code linter both pass.
  • [x] If you're a new contributor, please sign our contributor license agreement.

Warnings

  • [x] This PR will change existing database contents.
  • [ ] This PR introduces a breaking change to existing installations.

Summary

This is an initial commit to start integrating the federails gem into the project.

Linked issues

resolves #2046

Description of changes

This change requires #2194. This change introduces federails migrations.

This introduces routes, including nodeinfo with the federails gem. Example from their project:

/.well-known/webfinger(.:format)
/.well-known/host-meta(.:format)
/.well-known/nodeinfo(.:format)
/nodeinfo/2.0(.:format)
/federation/actors/:id/followers(.:format)
/federation/actors/:id/following(.:format)
/federation/actors/:actor_id/outbox(.:format)
/federation/actors/:actor_id/inbox(.:format)
/federation/actors/:actor_id/activities/:id(.:format)
/federation/actors/:actor_id/followings/:id(.:format)
/federation/actors/:actor_id/notes/:id(.:format)
/federation/actors/:id(.:format)
...

matthewbadeau avatar May 23 '24 14:05 matthewbadeau

Code Climate has analyzed commit 92df5e35 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 86.6% (0.0% change).

View more on Code Climate.

qlty-cloud-legacy[bot] avatar May 23 '24 14:05 qlty-cloud-legacy[bot]

Is there any way to just mount the nodeinfo stuff with Federails, not the activitypub stuff under /federation? I've got a way to go before I know exactly how I want to integrate that...

Floppy avatar May 23 '24 22:05 Floppy

@matthewbadeau I'm looking at this stuff now, so I'll build on this PR and get it merged in soon.

Floppy avatar Jul 27 '24 09:07 Floppy

@matthewbadeau I'm looking at this stuff now, so I'll build on this PR and get it merged in soon.

Thank you!

Apologies for the long delay and silence. I'm not able to commit time to this for the foreseeable future. 🙇

matthewbadeau avatar Jul 27 '24 10:07 matthewbadeau

No worries at all! I'll build off what you did so that your commits get credit for the work you were able to do :)

Floppy avatar Jul 27 '24 11:07 Floppy

Absorbed into #2454

Floppy avatar Jul 27 '24 19:07 Floppy