You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeripath 468387e9ce
Prevent NPE when cache service is disabled (#19703)
The cache service can be disabled - at which point ctx.Cache will be nil
and the use of it will cause an NPE.

The main part of this PR is that the cache is used for restricting
resending of activation mails and without this we cache we cannot
restrict this. Whilst this code could be re-considered to use the db and
probably should be, I think we can simply disable this code in the case
that the cache is disabled.

There are also several bug fixes in the /nodeinfo API endpoint.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2 years ago
..
admin Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
auth Prevent NPE when cache service is disabled (#19703) 2 years ago
dev Move user related model into models/user (#17781) 3 years ago
events Improve Stopwatch behavior (#18930) 2 years ago
explore Remove `RequireHighlightJS` field, update plantuml example. (#19615) 2 years ago
feed Add `ContextUser` to http request context (#18798) 2 years ago
healthcheck Update go-chi/cache to utilize Ping() (#19719) 2 years ago
misc Fix panic in team repos API (#19431) 2 years ago
org Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
repo Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
user Prevent NPE when cache service is disabled (#19703) 2 years ago
auth.go Remove legacy `+build:` constraint (#19582) 2 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 2 years ago
base.go Update base.go (#19739) 2 years ago
goget.go Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 2 years ago
home.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
metrics.go Update HTTP status codes to modern codes (#18063) 2 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
swagger_json.go Refactor routers directory (#15800) 3 years ago
web.go Add Webfinger endpoint (#19462) 2 years ago
webfinger.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago