]> cat aescling's git repositories - mastodon.git/commit
Add ActivityPub inbox (#4216)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 8 Aug 2017 19:52:15 +0000 (21:52 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2017 19:52:15 +0000 (21:52 +0200)
commitdd7ef0dc41584089a97444d8192bc61505108e6c
tree5bf440456b4f385e7202834a922975c0a188af7b
parentdcbc1af38a3ddc289783d9e9021690692bc1438e
Add ActivityPub inbox (#4216)

* Add ActivityPub inbox

* Handle ActivityPub deletes

* Handle ActivityPub creates

* Handle ActivityPub announces

* Stubs for handling all activities that need to be handled

* Add ActivityPub actor resolving

* Handle conversation URI passing in ActivityPub

* Handle content language in ActivityPub

* Send accept header when fetching actor, handle JSON parse errors

* Test for ActivityPub::FetchRemoteAccountService

* Handle public key and icon/image when embedded/as array/as resolvable URI

* Implement ActivityPub::FetchRemoteStatusService

* Add stubs for more interactions

* Undo activities implemented

* Handle out of order activities

* Hook up ActivityPub to ResolveRemoteAccountService, handle
Update Account activities

* Add fragment IDs to all transient activity serializers

* Add tests and fixes

* Add stubs for missing tests

* Add more tests

* Add more tests
50 files changed:
app/controllers/activitypub/inboxes_controller.rb [new file with mode: 0644]
app/helpers/jsonld_helper.rb [new file with mode: 0644]
app/lib/activitypub/activity.rb [new file with mode: 0644]
app/lib/activitypub/activity/announce.rb [new file with mode: 0644]
app/lib/activitypub/activity/block.rb [new file with mode: 0644]
app/lib/activitypub/activity/create.rb [new file with mode: 0644]
app/lib/activitypub/activity/delete.rb [new file with mode: 0644]
app/lib/activitypub/activity/follow.rb [new file with mode: 0644]
app/lib/activitypub/activity/like.rb [new file with mode: 0644]
app/lib/activitypub/activity/undo.rb [new file with mode: 0644]
app/lib/activitypub/activity/update.rb [new file with mode: 0644]
app/lib/activitypub/adapter.rb
app/lib/activitypub/tag_manager.rb
app/models/concerns/remotable.rb
app/serializers/activitypub/accept_follow_serializer.rb
app/serializers/activitypub/actor_serializer.rb
app/serializers/activitypub/block_serializer.rb
app/serializers/activitypub/delete_serializer.rb
app/serializers/activitypub/follow_serializer.rb
app/serializers/activitypub/like_serializer.rb
app/serializers/activitypub/reject_follow_serializer.rb
app/serializers/activitypub/undo_block_serializer.rb
app/serializers/activitypub/undo_follow_serializer.rb
app/serializers/activitypub/undo_like_serializer.rb
app/serializers/activitypub/update_serializer.rb
app/services/activitypub/fetch_remote_account_service.rb [new file with mode: 0644]
app/services/activitypub/fetch_remote_status_service.rb [new file with mode: 0644]
app/services/activitypub/process_account_service.rb [new file with mode: 0644]
app/services/activitypub/process_collection_service.rb [new file with mode: 0644]
app/services/resolve_remote_account_service.rb
app/workers/activitypub/processing_worker.rb [new file with mode: 0644]
app/workers/activitypub/thread_resolve_worker.rb [new file with mode: 0644]
config/initializers/inflections.rb
config/routes.rb
spec/controllers/activitypub/inboxes_controller_spec.rb [new file with mode: 0644]
spec/controllers/activitypub/outboxes_controller_spec.rb [new file with mode: 0644]
spec/helpers/jsonld_helper_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/announce_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/block_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/create_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/delete_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/follow_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/like_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/undo_spec.rb [new file with mode: 0644]
spec/lib/activitypub/activity/update_spec.rb [new file with mode: 0644]
spec/lib/activitypub/tag_manager_spec.rb [new file with mode: 0644]
spec/services/activitypub/fetch_remote_account_service_spec.rb [new file with mode: 0644]
spec/services/activitypub/fetch_remote_status_service_spec.rb [new file with mode: 0644]
spec/services/activitypub/process_account_service_spec.rb [new file with mode: 0644]
spec/services/activitypub/process_collection_service_spec.rb [new file with mode: 0644]