gotosocial/internal/typeutils
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
..
astointernal.go [chore] Try to parse public key as both Actor + bare key (#2710) 2024-04-02 11:30:10 +01:00
astointernal_test.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
converter.go [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
converter_test.go feature: filters v2 server-side warning/hiding (#2793) 2024-05-06 12:49:08 +01:00
defaulticons.go [feature] Implement profile API (#2926) 2024-05-29 12:57:44 +02:00
frontendtointernal.go [feature] Implement Filter API v2 (#2936) 2024-05-31 12:55:56 +02:00
internal.go [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
internaltoas.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
internaltoas_test.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
internaltofrontend.go [bugfix] boost and account recursion (#2982) 2024-06-10 19:42:41 +01:00
internaltofrontend_test.go [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
internaltorss.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
internaltorss_test.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
util.go [feature] do not uncache status / emoji media if attached status is bookmarked (#2956) 2024-06-06 11:44:43 +01:00
util_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
wrap.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
wrap_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00