mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: #7266 body does not contain skin class
A regression was identified where the skin was not shown in the body class. This resolves the issue and adds a workaround so that the fix does not become breaking for custom themes.
This commit is contained in:
@@ -140,7 +140,9 @@ module.exports = function (middleware) {
|
|||||||
results.user['email:confirmed'] = results.user['email:confirmed'] === 1;
|
results.user['email:confirmed'] = results.user['email:confirmed'] === 1;
|
||||||
results.user.isEmailConfirmSent = !!results.isEmailConfirmSent;
|
results.user.isEmailConfirmSent = !!results.isEmailConfirmSent;
|
||||||
|
|
||||||
templateValues.bootswatchSkin = parseInt(meta.config.disableCustomUserSkins, 10) !== 1 ? res.locals.config.bootswatchSkin || '' : '';
|
templateValues.bootswatchSkin = (parseInt(meta.config.disableCustomUserSkins, 10) !== 1 ? res.locals.config.bootswatchSkin : '') || meta.config.bootswatchSkin || '';
|
||||||
|
templateValues.config.bootswatchSkin = templateValues.bootswatchSkin || 'noskin'; // TODO remove in v1.12.0+
|
||||||
|
|
||||||
const unreadCounts = results.unreadData.counts;
|
const unreadCounts = results.unreadData.counts;
|
||||||
var unreadCount = {
|
var unreadCount = {
|
||||||
topic: unreadCounts[''] || 0,
|
topic: unreadCounts[''] || 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user