Commit Graph

14 Commits (f6d35ed57d156f4225338a89372c8e83721e46c9)

Author SHA1 Message Date
Claire d5c9feb7b7
Add support for private pinned posts ()
* Add support for private pinned toots

* Allow local user to pin private toots

* Change wording to avoid "direct message"
Eugen Rochko 17340365bb
Add featured hashtags as an ActivityPub collection ()
Eugen Rochko 5d8398c8b8
Add E2EE API ()
Eugen Rochko 988b0493fe
Add more tests for ActivityPub controllers ()
abcang 059945c97c Improve status pin query ()
Eugen Rochko c669bb42ba
Add (back) rails-level JSON caching ()
ThibG 15ddabf95a Fix caching headers in ActivityPub endpoints ()
* Fix reverse-proxy caching in public fetch mode

* Fix caching in ActivityPub-specific controllers
Eugen Rochko 5bf67ca913
Add ActivityPub secure mode ()
* Add HTTP signature requirement for served ActivityPub resources

* Change `SECURE_MODE` to `AUTHORIZED_FETCH`

* Add 'Signature' to 'Vary' header and improve code style

* Improve code style by adding `public_fetch_mode?` method
Eugen Rochko 63c7fe8e48
Refactor controllers for statuses, accounts, and more ()
ThibG cac9110533 Cleanup various controllers ()
* Remove skip_session! as it is not supported in Rails 5

* Minor cleanup in StreamEntriesController

* Remove redundant mark_cacheable! calls
ThibG cc6e3c3900 Cache featured collections, as well as outbox, followers and following ()
ysksn ed24bb2c3e Add specs for activitypub collections controller ()
* Add specs for ActivityPub::CollectionsController#show

* Raise ActiveRecord::RecordNotFound

Raising ActiveRecord::NotFound raises NameError: uninitialized constant
ActiveRecord::NotFound.
Eugen Rochko 2c1f7b2ece
Better pagination for ActivityPub outbox ()
Eugen Rochko 9110db41c5
Federate pinned statuses over ActivityPub ()
* Federate pinned statuses over ActivityPub

* Display pinned toots in web UI

Fix 

* Fix migration

* Fix tests

* Update outbox_serializer.rb

* Update remove_serializer.rb

* Update add_serializer.rb

* Update fetch_featured_collection_service.rb