GoToSocial/internal/processing/status
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
..
bookmark.go [feature] do not uncache status / emoji media if attached status is bookmarked (#2956) 2024-06-06 11:44:43 +01:00
bookmark_test.go
boost.go [bugfix] boost and account recursion (#2982) 2024-06-10 19:42:41 +01:00
boost_test.go
create.go
create_test.go
delete.go
fave.go
get.go [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
get_test.go
mute.go
pin.go [bugfix] Lock when checking/creating notifs to avoid race (#2890) 2024-05-02 13:43:00 +01:00
status.go
status_test.go