GoToSocial/internal
kim 33aee1b1e9
[chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411)
* reformat GetAccount() functionality, and add UpdateAccount() function.

* use fetched_at instead of last_webfingered_at

* catch local "not found" errors. small formatting / error string changes

* remove now unused error type

* return nil when wrapping nil error

* update expected error messages

* return correct url for foss satan webfinger

* add AP model for Some_User

* normalize local domain

* return notretrievable where appropriate

* expose NewErrNotRetrievable

* ensure webfinger for new accounts searched by uri

* update local account short circuit

* allow enrich to fail for already-known accounts

* remove unused LastWebfingeredAt

* expose test maps on mock http client

* update Update test

* reformat GetAccount() functionality, and add UpdateAccount() function.

* use fetched_at instead of last_webfingered_at

* catch local "not found" errors. small formatting / error string changes

* remove nil error checks (we shouldn't be passing nil errors to newError() initializers)

* remove mutex unlock on transport init fail (it hasn't yet been locked!)

* woops add back the error wrapping to use ErrNotRetrievable

* caches were never being started... 🙈

---------

Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2023-02-03 20:03:05 +00:00
..
ap [bugfix] Read Bookwyrm Articles more thoroughly (#1410) 2023-02-02 16:41:02 +01:00
api [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
cache [feature] Implement Report database model and utility functions (#1310) 2023-01-10 14:19:05 +00:00
concurrency [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
config [chore] set max open / idle conns + conn max lifetime for both postgres and sqlite (#1369) 2023-01-26 15:12:48 +01:00
db [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
email [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
federation [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
gotosocial [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
gtserror [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
gtsmodel [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
httpclient [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
id [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
iotools [bugfix] Parse video metadata more accurately; allow Range in fileserver (#1342) 2023-01-16 16:19:17 +01:00
log [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
media [chore] remove funky duplicate attachment in testrig (#1379) 2023-01-23 13:39:01 +01:00
messages [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
middleware [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
netutil [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
oauth [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
oidc [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
processing [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
regexes [feature] Federate reports to remote instance as Flag (if desired) (#1386) 2023-01-27 14:48:11 +01:00
router [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
state [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
storage [performance] media processing improvements (#1288) 2023-01-11 12:13:13 +01:00
stream [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
text [chore] Text formatting overhaul (#1406) 2023-02-03 11:58:58 +01:00
timeline [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
trans [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
transport [feature] Implement `/api/v2/instance` endpoint (#1409) 2023-02-02 14:08:13 +01:00
typeutils [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
uris [feature] Implement Report database model and utility functions (#1310) 2023-01-10 14:19:05 +00:00
util [chore] Text formatting overhaul (#1406) 2023-02-03 11:58:58 +01:00
validate [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
visibility [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
web [feature] Implement `/api/v2/instance` endpoint (#1409) 2023-02-02 14:08:13 +01:00