mirror of
1
Fork 0
gotosocial/internal/processing/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
..
federation.go [feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805) 2022-09-06 12:42:55 +02:00
getemoji.go [feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805) 2022-09-06 12:42:55 +02:00
getfollowers.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
getfollowing.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
getnodeinfo.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
getoutbox.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
getstatus.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
getstatusreplies.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
getuser.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
getwebfinger.go [performance] use GetAccountByUsernameDomain() for local account lookups to rely on cache (#793) 2022-09-02 11:56:33 +02:00
postinbox.go replace async client API / federator msg processing with worker pools (#497) 2022-04-28 13:23:11 +01:00