nodebb-theme-peace
Advanced tools
Comparing version 2.0.18 to 2.0.19
@@ -48,18 +48,2 @@ 'use strict'; | ||
library.filterTopicBuild = async function (hookData) { | ||
if (hookData.req.user) { | ||
const userData = await user.getUserData(hookData.req.user.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.filterConfigGet = async function (config) { | ||
@@ -66,0 +50,0 @@ const settings = await meta.settings.get('peace'); |
{ | ||
"name": "nodebb-theme-peace", | ||
"version": "2.0.18", | ||
"version": "2.0.19", | ||
"nbbpm": { | ||
@@ -5,0 +5,0 @@ "compatibility": "^3.0.0" |
@@ -7,3 +7,2 @@ { | ||
{ "hook": "filter:config.get", "method": "filterConfigGet" }, | ||
{ "hook": "filter:topic.build", "method": "filterTopicBuild" }, | ||
{ "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" }, | ||
@@ -10,0 +9,0 @@ { "hook": "filter:admin.header.build", "method": "addAdminNavigation" } |
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
7440409
171