gotosocial/internal/federation/dereferencing
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
..
account.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
account_test.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
announce.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
collectionpage.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
dereferencer.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
dereferencer_test.go [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
emoji.go [chore] Fixes + updates in emoji dereferencing logic (#1022) 2022-11-11 19:27:37 +00:00
emoji_test.go [chore] Fixes + updates in emoji dereferencing logic (#1022) 2022-11-11 19:27:37 +00:00
error.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
finger.go [chore] Webfinger rework (#627) 2022-06-11 11:01:34 +02:00
handshake.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
instance.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
media.go [bugfix] Wrap media in read closer (#941) 2022-11-03 15:03:12 +01:00
media_test.go [chore] Test fixes (#788) 2022-08-31 17:31:21 +02:00
status.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
status_test.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
thread.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
util.go [chore] Fixes + updates in emoji dereferencing logic (#1022) 2022-11-11 19:27:37 +00:00