-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(protocol/activitypub): rebuild activitypub engine protocol and provider #600
Merged
brucexc
merged 39 commits into
main
from
feat/rebuild-activitypub-engine-protocol-and-provider
Nov 14, 2024
Merged
feat(protocol/activitypub): rebuild activitypub engine protocol and provider #600
brucexc
merged 39 commits into
main
from
feat/rebuild-activitypub-engine-protocol-and-provider
Nov 14, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brucexc
requested changes
Oct 22, 2024
…ng relay servoce request
kallydev
reviewed
Oct 23, 2024
kallydev
reviewed
Oct 23, 2024
kallydev
reviewed
Oct 23, 2024
FrankLi123
force-pushed
the
feat/rebuild-activitypub-engine-protocol-and-provider
branch
from
October 24, 2024 16:50
b35d4fa
to
215230f
Compare
FrankLi123
force-pushed
the
feat/rebuild-activitypub-engine-protocol-and-provider
branch
from
October 24, 2024 17:36
215230f
to
412bb3d
Compare
brucexc
requested changes
Oct 30, 2024
Remember to update and close this: RSS3-Network/Docs#9 |
Please pay attention to this comment: RSS3-Network/Docs#9 (comment). |
brucexc
force-pushed
the
feat/rebuild-activitypub-engine-protocol-and-provider
branch
from
November 7, 2024 04:54
935c897
to
e85e3aa
Compare
…-provider # Conflicts: # internal/node/monitor/client.go # internal/node/monitor/monitor_mock.go # internal/node/monitor/monitor_test.go
polebug
approved these changes
Nov 12, 2024
polebug
approved these changes
Nov 14, 2024
brucexc
approved these changes
Nov 14, 2024
brucexc
deleted the
feat/rebuild-activitypub-engine-protocol-and-provider
branch
November 14, 2024 03:18
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR is about implementing the relay subscription solution for ActivityPub data collection. This solution is compatible with most of the common Relay URLs that either end with '/inbox' or without.
Guide: How to Run a Mastodon Worker locally ?
Get a Public URL endpoint forwarding to
localhost:{port number}
and input it as the mastodon endpoint in config.yaml. You can use a tool likeNgrok
to expose a server at a port. e.g., "https://your-subdomain.ngrok.app".Add a
Relay service list
and aport
as a parameter inconfig.yaml
for local development. Relays aggregate messages from different servers, and the port is where your input endpoint will forward requests. You can add multiple relay URLs in config.yaml or default relay URLs will be used if none are specified:ex:
Default Relay Service List:
(note): messages from relay.fedi.buzz server do not contain "share" type object.
Main Modified Components
mastodon/client.go
: Functions for relay service interaction and received relay message handlingactivitypub/data_source.go
: implementation of the core data collection process with the HTTP serverTechnical Implementation
Future Improvements:
Checklist
Does this PR introduce a breaking change?
Other information