GoToSocial/internal/federation
tobi 97f5453378
[chore] Tidy up some of the search logic (#1082)
* start refactoring some of the search + deref logic

* add tests for search api

* rename GetRemoteAccount + GetRemoteStatus

* make search function a bit simpler + clearer

* fix little fucky wucky uwu owo i'm just a little guy

* update faulty switch statements

* update test to use storage struct

* redo switches for clarity

* reduce repeated logic in search tests

* fastfail getstatus by uri

* debug log + trace log better

* add implementation note

* return early if no result for namestring search

* return + check on dereferencing error types

* errors hah what errors

* remove unneeded error type alias, add custom error text during stringification itself

* fix a woops recursion 🙈

Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: kim <grufwub@gmail.com>
2022-11-29 09:24:55 +00:00
..
dereferencing [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
federatingdb [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
authenticate.go [feature/performance] Fail fast when doing remote transport calls inside incoming request contexts (#1119) 2022-11-23 21:40:07 +00:00
clock.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
commonbehavior.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
dereference.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
federatingactor.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
federatingactor_test.go [feature] Allow delivery to sharedInboxes where possible (#847) 2022-09-23 20:27:35 +01:00
federatingprotocol.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
federatingprotocol_test.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
federator.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
federator_test.go [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
gone.go [feature] Read + Write tombstones for deleted Actors (#1005) 2022-11-11 12:18:38 +01:00
handshake.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
transport.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00