gotosocial/internal/api
Daenney 2cac5a4613
[feature] Support Actor URIs for webfinger queries (#2187)
* [feature] Support Actor URIs for webfinger queries

It's now possible to pass an Actor URI as the resource to query for when
doing a webfinger query. The code now extracts the username and domain
from the URI. The URI needs to be fully qualified, including having a
scheme of http or https to be recognised as such.

The acct scheme is handled as we used to, including dealing with an
erroneous leading @ on the username. We retain the ability to handle
resources without a scheme by parsing them again with the acct scheme if
the original parse failed. This can happen due to parsing ambiguities
when dealing with a string like user@domain.tld:port.

* [bugfix] Remove debugging changes

* [chore] Make TestExtractNamestring table-driven

* [chore] Unnest Trim and Split for readability
2023-09-11 18:38:31 +02:00
..
activitypub [bugfix] Rework MultiError to wrap + unwrap errors properly (#2057) 2023-08-02 17:21:46 +02:00
auth [bugfix] Fix using wrong key for clientID during oauth callback (#2101) 2023-08-11 14:58:47 +02:00
client [chore] much improved paging package (#2182) 2023-09-07 15:58:37 +01:00
fileserver [bugfix] fix double firing bun.DB query hooks (#2124) 2023-08-17 17:26:21 +01:00
model [feature] Store admin actions in the db, prevent conflicting actions (#2167) 2023-09-04 14:55:17 +01:00
nodeinfo [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
util [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
wellknown [feature] Support Actor URIs for webfinger queries (#2187) 2023-09-11 18:38:31 +02:00
activitypub.go [bugfix] Set Vary header correctly on cache-control (#1988) 2023-07-13 21:27:25 +02:00
auth.go [bugfix] Set Vary header correctly on cache-control (#1988) 2023-07-13 21:27:25 +02:00
client.go [feature] Implement markers API (#1989) 2023-07-29 12:49:14 +02:00
fileserver.go [bugfix] Set Vary header correctly on cache-control (#1988) 2023-07-13 21:27:25 +02:00
nodeinfo.go [bugfix] Set Vary header correctly on cache-control (#1988) 2023-07-13 21:27:25 +02:00
wellknown.go [bugfix] Set Vary header correctly on cache-control (#1988) 2023-07-13 21:27:25 +02:00