gotosocial/internal/api
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
..
client [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
model [feature] PATCH /api/v1/admin/custom_emojis/{id} endpoint (#1061) 2022-11-24 18:12:07 +00:00
s2s [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
security [chore] Replace blocking Floc with Topics. (#1068) 2022-11-17 15:04:06 +01:00
apimodule.go
errorhandling.go
mime.go
negotiate.go