gotosocial/internal
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
..
ap [bugfix] Use custom bluemonday policy to disallow inline img tags (#2100) 2023-08-11 14:40:11 +02:00
api [feature] Support Actor URIs for webfinger queries (#2187) 2023-09-11 18:38:31 +02:00
cache [chore] much improved paging package (#2182) 2023-09-07 15:58:37 +01:00
cleaner [performance] Tweak media attachment cleanup; replace stale index (#2143) 2023-08-21 14:03:04 +01:00
config [feature] Support OTLP HTTP, drop Jaeger (#2184) 2023-09-07 13:20:37 +02:00
db [chore] much improved paging package (#2182) 2023-09-07 15:58:37 +01:00
email [bugfix] add From to email header (#1717) 2023-04-29 11:47:14 +02:00
federation [bugfix] fix checks for deref the same status descendants / ascendants (#2181) 2023-09-05 11:22:02 +01:00
gotosocial [bugfix] fix double firing bun.DB query hooks (#2124) 2023-08-17 17:26:21 +01:00
gtscontext [chore] ensure worker contexts have request ID (#2120) 2023-08-15 17:01:01 +01:00
gtserror [feature] List replies policy, refactor async workers (#2087) 2023-08-09 19:14:33 +02:00
gtsmodel [feature] Store admin actions in the db, prevent conflicting actions (#2167) 2023-09-04 14:55:17 +01:00
httpclient [bugfix] only set content-length AFTER rewinding body bytes (#2086) 2023-08-08 12:45:29 +01:00
id [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
iotools [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
log [feature] Make log format configurable (#2130) 2023-08-21 19:07:55 +01:00
media [feature/performance] support uncaching remote emoji + scheduled cleanup functions (#1987) 2023-07-24 13:14:13 +01:00
messages [feature] List replies policy, refactor async workers (#2087) 2023-08-09 19:14:33 +02:00
middleware [feature] Add rate limit exceptions option, use ISO8601 for rate limit reset (#2151) 2023-08-23 14:32:27 +02:00
oauth [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
oidc [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
paging [chore] much improved paging package (#2182) 2023-09-07 15:58:37 +01:00
processing [chore] much improved paging package (#2182) 2023-09-07 15:58:37 +01:00
regexes [feature/performance] support uncaching remote emoji + scheduled cleanup functions (#1987) 2023-07-24 13:14:13 +01:00
router [bugfix] handle HEAD requests more elegantly (#2055) 2023-08-02 10:28:20 +02:00
state [feature] Add List functionality (#1802) 2023-05-25 10:37:38 +02:00
storage [feature/bugfix] Probe S3 storage for CSP uri, add config flag for extra URIs (#2134) 2023-08-20 13:35:55 +02:00
stream [feature] Add List functionality (#1802) 2023-05-25 10:37:38 +02:00
text [bugfix] Use custom bluemonday policy to disallow inline img tags (#2100) 2023-08-11 14:40:11 +02:00
timeline [bugfix] Fix incorrect per-loop variable capture (#2092) 2023-08-09 18:40:32 +02:00
tracing [feature] Support OTLP HTTP, drop Jaeger (#2184) 2023-09-07 13:20:37 +02:00
trans [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
transport [feature] simpler cache size configuration (#2051) 2023-08-03 11:34:35 +02:00
typeutils [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
uris [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
util [feature] Support Actor URIs for webfinger queries (#2187) 2023-09-11 18:38:31 +02:00
validate [feature] Allow full BCP 47 in language inputs (#2067) 2023-08-07 10:25:54 +02:00
visibility [feature] List replies policy, refactor async workers (#2087) 2023-08-09 19:14:33 +02:00
web [bugfix] Use custom bluemonday policy to disallow inline img tags (#2100) 2023-08-11 14:40:11 +02:00
workers [feature] Store admin actions in the db, prevent conflicting actions (#2167) 2023-09-04 14:55:17 +01:00