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 Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
errorhandling.go [bugfix] Fix domains not being unblockable, log internal server errors from API (#833) 2022-09-17 19:12:12 +02:00
mime.go [feature] Add opt-in RSS feed for account's latest Public posts (#897) 2022-10-08 14:00:39 +02:00
negotiate.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00