gotosocial/internal/api/model
Daenney e397272fe8
[feature] Discover webfinger through host-meta (#1588)
* [feature] Discover webfinger through host-meta

This implements a fallback for discovering the webfinger endpoint in
case the /.well-known/webfinger endpoint wasn't properly redirected.
Some instances do this because the recommendation used to be to use
host-meta for the webfinger redirect in the before times.

Closes #1558.

* [bug] Ensure we only ever update cache on success

* [chore] Move finger tests to their own place

This adds a test suite for transport and moves the finger cache tests
into there instead of abusing the search test suite.

* [chore] cleanup the test a bit more

We don't really need a separate function for the oddly located webfinger
response as we check the full URL string anyway

* Address review comments

* [chore] update config example

* [chore] access DB only through state in controller
2023-03-08 12:57:41 +00:00
..
account.go [feature] Advertise rich text formats, support content_type field (#1370) 2023-03-02 12:06:40 +01:00
admin.go [bugfix] Fix account roles (#1542) 2023-02-20 17:00:44 +01:00
announcement.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
announcementreaction.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
application.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
attachment.go [bugfix] Parse video metadata more accurately; allow Range in fileserver (#1342) 2023-01-16 16:19:17 +01:00
block.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
card.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
content.go [bugfix] Set cache-control max-age dynamically for s3 (#1510) 2023-02-16 13:18:53 +00:00
context.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
conversation.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
domain.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
emoji.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
emojicategory.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
featuredtag.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
field.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
filter.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
history.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
instance.go [feature] Advertise rich text formats, support content_type field (#1370) 2023-03-02 12:06:40 +01:00
instancev1.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
instancev2.go [feature] Implement /api/v2/instance endpoint (#1409) 2023-02-02 14:08:13 +01:00
list.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
marker.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
mention.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
notification.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
oauth.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
paging.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
poll.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
preferences.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
pushsubscription.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
relationship.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
report.go [feature] Implement reports admin API so admins can view + close reports (#1378) 2023-01-25 11:12:17 +01:00
results.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
scheduledstatus.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
search.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
source.go [feature] Advertise rich text formats, support content_type field (#1370) 2023-03-02 12:06:40 +01:00
status.go [feature] Advertise rich text formats, support content_type field (#1370) 2023-03-02 12:06:40 +01:00
tag.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
token.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
user.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
well-known.go [feature] Discover webfinger through host-meta (#1588) 2023-03-08 12:57:41 +00:00