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

feat: add mastodon related config details #556

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

pseudoyu
Copy link
Member

Summary

add mastodon related config details

Checklist

Does this PR introduce a breaking change?

  • Yes
  • No

@pseudoyu pseudoyu requested a review from FrankLi123 October 10, 2024 10:22
@pseudoyu pseudoyu self-assigned this Oct 10, 2024
@pseudoyu pseudoyu requested a review from polebug as a code owner October 10, 2024 10:22
IsRequired: true,
Type: StringType,
Value: "activitypub_events",
Description: "The Kafka topic to publish the ActivityPub data to. If not provided, the data will be published to the default topic",
Copy link
Contributor

Choose a reason for hiding this comment

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

"The Kafka topic to which the ActivityPub data will be published. By default, the data will be sent to this topic on the Kafka broker running on the Mastodon instance."

@@ -217,8 +226,10 @@ func customWorkerConfig(worker worker.Worker, network network.Source, parameters
return config
}

func getEndpointConfig() Endpoint {
return Endpoint{
const mastodonInstanceDescription = "A Mastodon instance is required. Please follow <a href=\"https://github.com/RSS3-Network/Mastodon-Instance-Kit\" target=\"_blank\">the guide</a> to deploy your own instance. Once deployed, set the endpoint of your Mastodon instance here."
Copy link
Contributor

Choose a reason for hiding this comment

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

"A Mastodon instance is required. Please follow <a href="https://github.com/RSS3-Network/Mastodon-Instance-Kit\" target="_blank">the guide to either deploy a new Mastodon instance or modify an existing Mastodon instance. After completing either option, enter your Mastodon endpoint (format: your_instance_ip:9092) here."

IsRequired: true,
Type: StringType,
Value: "activitypub_events",
Description: "The Kafka topic to publish the ActivityPub data to. If not provided, the data will be published to the default topic",
Copy link
Contributor

Choose a reason for hiding this comment

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

could revise this as suggested above.

@pseudoyu pseudoyu requested a review from FrankLi123 October 10, 2024 10:56
@FrankLi123 FrankLi123 merged commit 1a09933 into worker-dev Oct 10, 2024
5 checks passed
@FrankLi123 FrankLi123 deleted the feat/add-ap-mastodon-configs branch October 10, 2024 11:00
kallydev pushed a commit that referenced this pull request Oct 12, 2024
feat: add mastodon related config details (#556)


feat: change rss to object and add default network endpoint url (#557)


feat: add title and key in config detail (#558)


chore: reorder the worker configs (#559)

fix: change mastodon endpoint type to string (#560)


feat: add default value and type for worker endpoint config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants