nodebb-theme-harmony
Advanced tools
Comparing version 1.0.0-beta.74 to 1.0.0-beta.75
@@ -141,21 +141,2 @@ 'use strict'; | ||
library.addUserToTopic = async function (hookData) { | ||
const { enableQuickReply } = await loadThemeConfig(hookData.req.uid); | ||
if (enableQuickReply) { | ||
if (hookData.req.user) { | ||
const userData = await user.getUserData(hookData.req.uid); | ||
hookData.templateData.loggedInUser = userData; | ||
} else { | ||
hookData.templateData.loggedInUser = { | ||
uid: 0, | ||
username: '[[global:guest]]', | ||
picture: user.getDefaultAvatar(), | ||
'icon:text': '?', | ||
'icon:bgColor': '#aaa', | ||
}; | ||
} | ||
} | ||
return hookData; | ||
}; | ||
library.filterMiddlewareRenderHeader = async function (hookData) { | ||
@@ -162,0 +143,0 @@ const userSettings = await user.getSettings(hookData.req.uid); |
{ | ||
"name": "nodebb-theme-harmony", | ||
"version": "1.0.0-beta.74", | ||
"version": "1.0.0-beta.75", | ||
"nbbpm": { | ||
@@ -5,0 +5,0 @@ "compatibility": "^3.0.0" |
@@ -11,3 +11,2 @@ { | ||
{ "hook": "filter:user.profileMenu", "method": "addProfileItem" }, | ||
{ "hook": "filter:topic.build", "method": "addUserToTopic" }, | ||
{ "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" }, | ||
@@ -14,0 +13,0 @@ { "hook": "filter:middleware.render", "method": "removeFinalBreadcrumb" } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11
25
4
140
1269064
1285
490