gotosocial/internal/processing/account
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 [feature] Make instance thumbnail configurable via admin panel (#973) 2022-11-08 17:11:06 +00:00
account_test.go [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
create.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
createblock.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
createfollow.go [chore] Update bun / sqlite versions; update gtsmodels (#754) 2022-08-15 11:35:05 +01:00
delete.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
get.go [chore] Tidy up some of the search logic (#1082) 2022-11-29 09:24:55 +00:00
getfollowers.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
getfollowing.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
getrelationship.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
getrss.go [feature] Add opt-in RSS feed for account's latest Public posts (#897) 2022-10-08 14:00:39 +02:00
getrss_test.go [feature] Add opt-in RSS feed for account's latest Public posts (#897) 2022-10-08 14:00:39 +02:00
getstatuses.go [chore] Make paging logic more generic (#901) 2022-10-10 15:52:49 +02:00
removeblock.go [performance] add account block DB cache and remove block query joins (#1085) 2022-11-20 16:33:49 +00:00
removefollow.go replace async client API / federator msg processing with worker pools (#497) 2022-04-28 13:23:11 +01:00
update.go [feature] Support markdown format for Account bio/note (#1037) 2022-11-19 10:07:51 +01:00
update_test.go [feature] Support markdown format for Account bio/note (#1037) 2022-11-19 10:07:51 +01:00