Commit Graph

5 Commits (add84698138d873075149418180143e16849c0c2)

Author SHA1 Message Date
Anthony Wang ed2a6f5348
make lint-backend 3 years ago
Anthony Wang b6b7fe27b6
WebFinger: Add CORS header and fix Href -> Template for remote interactions
The CORS header is needed due to https://datatracker.ietf.org/doc/html/rfc7033#section-5 and fixes some Peertube <-> Gitea federation issues
3 years ago
Anthony Wang 5823d8150a
Add actor IRI and remote interaction URL to WebFinger response 3 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748)
* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions
3 years ago
KN4CK3R 3da9dafc60
Add Webfinger endpoint (#19462)
This adds the [Webfinger](https://webfinger.net/) endpoint for federation.

Supported schemes are `acct` and `mailto`. The profile and avatar url are returned as metadata.
3 years ago