aboutsummaryrefslogtreecommitdiffstats
path: root/options/locale
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-05-21 15:29:49 +0100
committerGitHub <noreply@github.com>2022-05-21 22:29:49 +0800
commit468387e9ced12367aecc8b863e20e105fbdd0c82 (patch)
treef478efe769bc4946632db3bc07fa8c468aac9eb4 /options/locale
parentbc4764ffc67d240149fba9b0e8d23a68bc95fc6c (diff)
downloadgitea-468387e9ced12367aecc8b863e20e105fbdd0c82.tar.gz
gitea-468387e9ced12367aecc8b863e20e105fbdd0c82.zip
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>
Diffstat (limited to 'options/locale')
0 files changed, 0 insertions, 0 deletions