ADD controller for ActivityPub subscription to releases actor
This is the third and last part of the merging the overarching subscription MR at https://gitlab.com/gitlab-org/gitlab/-/merge_requests/132460 . This provides the controller, route and service used to create subscriptions. We add the `inbox` endpoint as specified by ActivityPub on our `releases` actor to receive various post requests. The only requests we accept are Follow and unfollow (Undo > Follow) ones. If we receive an other kind of activity (that could be, for example, that someone commented on our release post in the Fediverse), we silently discard it. The service's role is to create the blank subscription and to queue the background job that will resolve the various URLs and prepare the subscription.
显示
- app/controllers/activity_pub/application_controller.rb 2 个添加, 0 个删除app/controllers/activity_pub/application_controller.rb
- app/controllers/activity_pub/projects/releases_controller.rb 46 个添加, 1 个删除app/controllers/activity_pub/projects/releases_controller.rb
- app/models/activity_pub/releases_subscription.rb 3 个添加, 3 个删除app/models/activity_pub/releases_subscription.rb
- app/services/activity_pub/projects/releases_follow_service.rb 43 个添加, 0 个删除...services/activity_pub/projects/releases_follow_service.rb
- app/services/activity_pub/projects/releases_subscription_service.rb 35 个添加, 0 个删除...es/activity_pub/projects/releases_subscription_service.rb
- app/services/activity_pub/projects/releases_unfollow_service.rb 18 个添加, 0 个删除...rvices/activity_pub/projects/releases_unfollow_service.rb
- config/routes/activity_pub.rb 1 个添加, 0 个删除config/routes/activity_pub.rb
- spec/controllers/activity_pub/projects/releases_controller_spec.rb 179 个添加, 7 个删除...rollers/activity_pub/projects/releases_controller_spec.rb
- spec/models/activity_pub/releases_subscription_spec.rb 19 个添加, 5 个删除spec/models/activity_pub/releases_subscription_spec.rb
- spec/services/activity_pub/projects/releases_follow_service_spec.rb 145 个添加, 0 个删除...ces/activity_pub/projects/releases_follow_service_spec.rb
- spec/services/activity_pub/projects/releases_unfollow_service_spec.rb 152 个添加, 0 个删除...s/activity_pub/projects/releases_unfollow_service_spec.rb
加载中
想要评论请 注册 或 登录