Commit Graph

7 Commits (24da5cccfe58f85abbc9667515db2f9aa8062661)

Author SHA1 Message Date
Claire 73a782391c
Fix replies collection incorrectly looping ()
* Refactor tests

* Add tests

* Fix replies collection incorrectly looping
Eugen Rochko 3134691948
Add support for reversible suspensions through ActivityPub ()
Eugen Rochko 988b0493fe
Add more tests for ActivityPub controllers ()
ThibG 53071389ee Fix multiple issues with replies collection for pages further than self-replies ()
* Fix the replies collection returning snowflakes ids rather than URIs

Fixes 

* Fix min_id in replies queries once self-replies are exhausted

* Fix `next` attribute of replies collection being nil when there are no self-replies

* Rename other_accounts param to only_other_accounts
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 ()