Tree: f5c97172f0
5 Commits (f5c97172f0e725b2bb2d00d281d82caf4dd72b9d)
Author | SHA1 | Message | Date |
---|---|---|---|
|
cb50375e2b
|
Add more linters to improve code readability (#19989 An error occurred Add nakedret, unconvert, wastedassign, stylecheck and nolintlint linters to improve code readability - nakedret - https://github.com/alexkohler/nakedret - nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length. - unconvert - https://github.com/mdempsky/unconvert - Remove unnecessary type conversions - wastedassign - https://github.com/sanposhiho/wastedassign - wastedassign finds wasted assignment statements. - notlintlint - Reports ill-formed or insufficient nolint directives - stylecheck - https://staticcheck.io/docs/checks/#ST - keep style consistent - excluded: [ST1003 - Poorly chosen identifier](https://staticcheck.io/docs/checks/#ST1003) and [ST1005 - Incorrectly formatted error string](https://staticcheck.io/docs/checks/#ST1005) |
3 years ago |
|
02d745827b
|
Disable federation by default (#20045 An error occurred |
3 years ago |
|
e86f18a05a
|
User keypairs and HTTP signatures for ActivityPub federation using go-ap (#19133 An error occurred * go.mod: add go-fed/{httpsig,activity/pub,activity/streams} dependency go get github.com/go-fed/activity/streams@master go get github.com/go-fed/activity/pub@master go get github.com/go-fed/httpsig@master * activitypub: implement /api/v1/activitypub/user/{username} (#14186 |
3 years ago |
|
e2a3f3d259
|
Federation: return useful statistic information for nodeinfo (#19561 An error occurred Add statistic information for total user count, active user count, issue count and comment count for `/nodeinfo` |
3 years ago |
|
babab0bf5e
|
Add nodeinfo endpoint for federation purposes (#16953 An error occurred Nodeinfo is a way to expose certain metadata about a server for use of discovery regarding functionality of its federation capabilities. Two endpoints are required: 1. `/.well-known/nodeinfo` which informs client where it can find the location of the location of its metadata (including which version of the schema is used) 2. the endpoint which exposes the metadata in json format according to schema. Notes: * `openRegistrations` is a required field, but I propose to set to false as default in case someone writes a crawler to discover "open" gitea instances * to limit data leakage I also propose to not include the `usage` field (note it is required so it should be included, but left as empty). More info: https://github.com/jhass/nodeinfo https://github.com/jhass/nodeinfo/tree/main/schemas/2.1 http://nodeinfo.diaspora.software/protocol.html |
3 years ago |