-
- Downloads
ADD worker and dependent services for ActivityPub subscription
This is the second part of the merging the overarching subscription MR at !132460 . This provides the worker performing the async resolution of inbox URLs, and sending the Accept activity to the subscriber's inbox. The work will be called from the inbox endpoint of our actor for releases, when the endpoint receive a Follow activity (this part will be added in a following MR). When it happens, the controller queues the worker, which will be responsible of: - Retrieving the actor's inbox URL if we're only provided the actor profile URL - Retrieving the third party server shared inbox if it's provided - Sending an Accept activity to the actor's inbox to let them know we received their subscription - Updating our subscription record to mark it as active We won't use the shared inbox yet, but we will need it as soon as we send events when a new release is created, and the request we make ...
parent
fd5d1014
No related branches found
No related tags found
Showing
- app/services/activity_pub/accept_follow_service.rb 55 additions, 0 deletionsapp/services/activity_pub/accept_follow_service.rb
- app/services/activity_pub/inbox_resolver_service.rb 50 additions, 0 deletionsapp/services/activity_pub/inbox_resolver_service.rb
- app/services/activity_pub/third_party_error.rb 5 additions, 0 deletionsapp/services/activity_pub/third_party_error.rb
- app/workers/activity_pub/projects/releases_subscription_worker.rb 39 additions, 0 deletions...ers/activity_pub/projects/releases_subscription_worker.rb
- app/workers/all_queues.yml 9 additions, 0 deletionsapp/workers/all_queues.yml
- config/sidekiq_queues.yml 2 additions, 0 deletionsconfig/sidekiq_queues.yml
- spec/services/activity_pub/accept_follow_service_spec.rb 77 additions, 0 deletionsspec/services/activity_pub/accept_follow_service_spec.rb
- spec/services/activity_pub/inbox_resolver_service_spec.rb 99 additions, 0 deletionsspec/services/activity_pub/inbox_resolver_service_spec.rb
- spec/workers/activity_pub/projects/releases_subscription_worker_spec.rb 128 additions, 0 deletions...ctivity_pub/projects/releases_subscription_worker_spec.rb
Please register or sign in to comment