Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-theme-peace

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-theme-peace - npm Package Compare versions

Comparing version 2.0.18 to 2.0.19

16

lib/library.js

@@ -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');

2

package.json
{
"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" }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc