mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 08:55:50 +02:00
Merge branch 'master' into develop
This commit is contained in:
@@ -78,7 +78,6 @@ apiController.loadConfig = async function (req) {
|
||||
enablePostHistory: meta.config.enablePostHistory === 1,
|
||||
timeagoCutoff: meta.config.timeagoCutoff !== '' ? Math.max(0, parseInt(meta.config.timeagoCutoff, 10)) : meta.config.timeagoCutoff,
|
||||
timeagoCodes: languages.timeagoCodes,
|
||||
resizeImageWidth: meta.config.resizeImageWidth,
|
||||
cookies: {
|
||||
enabled: meta.config.cookieConsentEnabled === 1,
|
||||
message: translator.escape(validator.escape(meta.config.cookieConsentMessage || '[[global:cookies.message]]')).replace(/\\/g, '\\\\'),
|
||||
|
||||
@@ -230,6 +230,10 @@ Controllers.confirmEmail = async (req, res) => {
|
||||
...opts,
|
||||
});
|
||||
}
|
||||
|
||||
if (req.method === 'HEAD') {
|
||||
return renderPage();
|
||||
}
|
||||
try {
|
||||
if (req.loggedIn) {
|
||||
const emailValidated = await user.getUserField(req.uid, 'email:confirmed');
|
||||
|
||||
Reference in New Issue
Block a user