summaryrefslogtreecommitdiff
path: root/internal/federation/federator_test.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-09-11 18:38:31 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-11 18:38:31 +0200
commit2cac5a4613ab51a5ac33a16cb54bb1210be9e8ce (patch)
tree96db54305c3208bb6458c015ac774b229561596a /internal/federation/federator_test.go
parent[chore] bump bun v1.1.14 -> v1.1.15 (#2195) (diff)
downloadgotosocial-2cac5a4613ab51a5ac33a16cb54bb1210be9e8ce.tar.xz
[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
Diffstat (limited to 'internal/federation/federator_test.go')
0 files changed, 0 insertions, 0 deletions