Let pins federate
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 3 Feb 2021 13:09:28 +0000 (16:09 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 25 Mar 2021 10:03:40 +0000 (13:03 +0300)
commit3ec1dbd9223aa44205e90967175f07cc532501ab
treec25eed18a5f38b2feb63cb7a889a1c110c0c8f98
parentcaadde3b04cf4c6509cc0841a338503e646221a0
Let pins federate

- save object ids on pin, instead of activity ids
- pins federation
- removed pinned_activities field from the users table
- activityPub endpoint for user pins
- pulling remote users pins
38 files changed:
docs/development/API/differences_in_mastoapi_responses.md
lib/pleroma/activity.ex
lib/pleroma/activity/queries.ex
lib/pleroma/user.ex
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/activity_pub/activity_pub_controller.ex
lib/pleroma/web/activity_pub/builder.ex
lib/pleroma/web/activity_pub/object_validator.ex
lib/pleroma/web/activity_pub/object_validators/pin_validator.ex [new file with mode: 0644]
lib/pleroma/web/activity_pub/side_effects.ex
lib/pleroma/web/activity_pub/transmogrifier.ex
lib/pleroma/web/activity_pub/views/user_view.ex
lib/pleroma/web/api_spec/operations/status_operation.ex
lib/pleroma/web/api_spec/schemas/status.ex
lib/pleroma/web/common_api.ex
lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex
lib/pleroma/web/mastodon_api/controllers/status_controller.ex
lib/pleroma/web/mastodon_api/views/status_view.ex
lib/pleroma/web/router.ex
priv/repo/migrations/20210202110641_add_pinned_objects_to_users.exs [new file with mode: 0644]
priv/repo/migrations/20210203141144_add_featured_address_to_users.exs [new file with mode: 0644]
priv/repo/migrations/20210205145000_move_pinned_activities_into_pinned_objects.exs [new file with mode: 0644]
priv/repo/migrations/20210206045221_remove_pinned_activities_from_users.exs [new file with mode: 0644]
test/fixtures/collections/featured.json [new file with mode: 0644]
test/fixtures/masto_pin.json [new file with mode: 0644]
test/fixtures/statuses/note.json [new file with mode: 0644]
test/fixtures/users_mock/masto_featured.json [new file with mode: 0644]
test/fixtures/users_mock/user.json [new file with mode: 0644]
test/pleroma/user_test.exs
test/pleroma/web/activity_pub/activity_pub_controller_test.exs
test/pleroma/web/activity_pub/activity_pub_test.exs
test/pleroma/web/activity_pub/transmogrifier_test.exs
test/pleroma/web/common_api_test.exs
test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
test/pleroma/web/mastodon_api/views/status_view_test.exs
test/pleroma/web/twitter_api/remote_follow_controller_test.exs
test/support/factory.ex
test/support/http_request_mock.ex