gotosocial/internal/federation
kim fd6637df4a
[bugfix] boost and account recursion (#2982)
* fix possible infinite recursion if moved accounts are self-referential

* adds a defensive check for a boost being a boost of a boost wrapper

* add checks on input for a boost of a boost

* remove unnecessary check

* add protections on account move to prevent move recursion loops

* separate status conversion without boost logic into separate function to remove risk of recursion

* move boost check to boost function itself

* formatting

* use error 422 instead of 500

* use gtserror not standard errors package for error creation
2024-06-10 19:42:41 +01:00
..
dereferencing [bugfix] boost and account recursion (#2982) 2024-06-10 19:42:41 +01:00
federatingdb [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
authenticate.go [chore] Try to parse public key as both Actor + bare key (#2710) 2024-04-02 11:30:10 +01:00
clock.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
commonbehavior.go [chore] de-interface{} the federator and dereferencer structs (#2285) 2023-10-23 10:58:13 +01:00
federatingactor.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00
federatingactor_test.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00
federatingprotocol.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00
federatingprotocol_test.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00
federator.go [bugfix] check remote status permissibility (#2703) 2024-03-04 12:30:12 +00:00
federator_test.go [feature] Add experimental instance-federation-spam-filter option (#2685) 2024-02-27 12:22:05 +00:00
gone.go [chore] de-interface{} the federator and dereferencer structs (#2285) 2023-10-23 10:58:13 +01:00
transport.go [chore] de-interface{} the federator and dereferencer structs (#2285) 2023-10-23 10:58:13 +01:00