gotosocial/internal/processing
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 [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
admin [feature] PATCH /api/v1/admin/custom_emojis/{id} endpoint (#1061) 2022-11-24 18:12:07 +00:00
federation [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
media [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
status [bugfix] Fix status boosts giving 404 (#1137) 2022-11-24 16:12:43 +01:00
streaming [performance] add user cache and database (#879) 2022-10-03 10:46:11 +02:00
user [chore] Standardize database queries, use bun.Ident() properly (#886) 2022-10-08 13:50:48 +02:00
account_test.go [feature] Allow delivery to sharedInboxes where possible (#847) 2022-09-23 20:27:35 +01:00
account.go [chore] Make paging logic more generic (#901) 2022-10-10 15:52:49 +02:00
admin.go [feature] PATCH /api/v1/admin/custom_emojis/{id} endpoint (#1061) 2022-11-24 18:12:07 +00:00
app.go [feature] More consistent API error handling (#637) 2022-06-08 20:38:03 +02:00
blocks.go [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
federation.go [feature] Custom emoji updates (serve emoji via s2s api, tune db models) (#805) 2022-09-06 12:42:55 +02:00
followrequest_test.go [chore] Test fixes (#788) 2022-08-31 17:31:21 +02:00
followrequest.go replace async client API / federator msg processing with worker pools (#497) 2022-04-28 13:23:11 +01:00
fromclientapi_test.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
fromclientapi.go [performance] add user cache and database (#879) 2022-10-03 10:46:11 +02:00
fromcommon.go [chore] Tidy up status deletion, remove from cache too (#845) 2022-09-21 19:55:52 +02:00
fromfederator_test.go [performance] add user cache and database (#879) 2022-10-03 10:46:11 +02:00
fromfederator.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
instance.go [chore] update database caching library (#1040) 2022-11-15 18:45:15 +00:00
media.go [feature] More consistent API error handling (#637) 2022-06-08 20:38:03 +02:00
notification_test.go [feature] Add support for the exclude_types[] parameter on the notifications endpoint (#784) 2022-08-31 19:20:52 +02:00
notification.go [chore] Make paging logic more generic (#901) 2022-10-10 15:52:49 +02:00
oauth.go [feature] oob oauth token support (#889) 2022-10-08 13:49:56 +02:00
processor_test.go [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
processor.go [feature] PATCH /api/v1/admin/custom_emojis/{id} endpoint (#1061) 2022-11-24 18:12:07 +00:00
search.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
status.go [feature] More consistent API error handling (#637) 2022-06-08 20:38:03 +02:00
statustimeline.go [feature] add instance-expose-public-timeline flag (#1039) 2022-11-14 10:30:01 +01:00
streaming.go [feature] More consistent API error handling (#637) 2022-06-08 20:38:03 +02:00
user.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
util.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00