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
..
security Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
account.go Prevent NPE when cache service is disabled (#19703) 2 years ago
account_test.go Update HTTP status codes to modern codes (#18063) 2 years ago
adopt.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
applications.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
keys.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 2 years ago
main_test.go Use a struct as test options (#19393) 2 years ago
oauth2.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
profile.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago