Refactor ActivityPub handling to prepare for non-Account actors (#19212)
* Move ActivityPub::FetchRemoteAccountService to ActivityPub::FetchRemoteActorService ActivityPub::FetchRemoteAccountService is kept as a wrapper for when the actor is specifically required to be an Account * Refactor SignatureVerification to allow non-Account actors * fixup! Move ActivityPub::FetchRemoteAccountService to ActivityPub::FetchRemoteActorService * Refactor ActivityPub::FetchRemoteKeyService to potentially return non-Account actors * Refactor inbound ActivityPub payload processing to accept non-Account actors * Refactor inbound ActivityPub processing to accept activities relayed through non-Account * Refactor how Account key URIs are built * Refactor Request and drop unused key_id_format parameter * Rename ActivityPub::Dereferencer `signature_account` to `signature_actor`
Showing
- app/controllers/accounts_controller.rb 1 addition, 1 deletionapp/controllers/accounts_controller.rb
- app/controllers/activitypub/claims_controller.rb 1 addition, 1 deletionapp/controllers/activitypub/claims_controller.rb
- app/controllers/activitypub/collections_controller.rb 1 addition, 1 deletionapp/controllers/activitypub/collections_controller.rb
- app/controllers/activitypub/followers_synchronizations_controller.rb 1 addition, 1 deletion...lers/activitypub/followers_synchronizations_controller.rb
- app/controllers/activitypub/inboxes_controller.rb 5 additions, 5 deletionsapp/controllers/activitypub/inboxes_controller.rb
- app/controllers/activitypub/outboxes_controller.rb 1 addition, 1 deletionapp/controllers/activitypub/outboxes_controller.rb
- app/controllers/activitypub/replies_controller.rb 1 addition, 1 deletionapp/controllers/activitypub/replies_controller.rb
- app/controllers/concerns/signature_verification.rb 31 additions, 21 deletionsapp/controllers/concerns/signature_verification.rb
- app/controllers/follower_accounts_controller.rb 1 addition, 1 deletionapp/controllers/follower_accounts_controller.rb
- app/controllers/following_accounts_controller.rb 1 addition, 1 deletionapp/controllers/following_accounts_controller.rb
- app/controllers/statuses_controller.rb 1 addition, 1 deletionapp/controllers/statuses_controller.rb
- app/controllers/tags_controller.rb 1 addition, 1 deletionapp/controllers/tags_controller.rb
- app/lib/activitypub/activity.rb 5 additions, 5 deletionsapp/lib/activitypub/activity.rb
- app/lib/activitypub/dereferencer.rb 3 additions, 3 deletionsapp/lib/activitypub/dereferencer.rb
- app/lib/activitypub/linked_data_signature.rb 3 additions, 3 deletionsapp/lib/activitypub/linked_data_signature.rb
- app/lib/activitypub/tag_manager.rb 8 additions, 0 deletionsapp/lib/activitypub/tag_manager.rb
- app/lib/request.rb 6 additions, 12 deletionsapp/lib/request.rb
- app/serializers/activitypub/public_key_serializer.rb 1 addition, 1 deletionapp/serializers/activitypub/public_key_serializer.rb
- app/services/activitypub/fetch_remote_account_service.rb 5 additions, 73 deletionsapp/services/activitypub/fetch_remote_account_service.rb
- app/services/activitypub/fetch_remote_actor_service.rb 80 additions, 0 deletionsapp/services/activitypub/fetch_remote_actor_service.rb
Loading
Please register or sign in to comment