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

nodebb-plugin-undelete-users

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-plugin-undelete-users - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

8

lib/controllers.js

@@ -51,3 +51,3 @@ 'use strict';

let pageEvents = await events.getEvents(EVENT_TYPE, pageStart, pageStop, from || '-inf', to);
let filteredEvents = pageEvents.filter(e => !filterEvent(e, query));
let filteredEvents = pageEvents.filter(e => filterEvent(e, query));
filteredEvents = hideDuplicateUids(filteredEvents, seenUids);

@@ -84,5 +84,5 @@ filteredEvents = await hideExistingUids(filteredEvents);

function filterEvent(event, { username, uid, email }) {
return (username && event.username && !event.username.toLowerCase().includes(username)) ||
(uid && parseInt(event.targetUid, 10) !== parseInt(uid, 10)) ||
(email && event.email && !event.email.toLowerCase().includes(email));
return (username && event.username && event.username.toLowerCase().includes(username)) ||
(uid && parseInt(event.targetUid, 10) === parseInt(uid, 10)) ||
(email && event.email && event.email.toLowerCase().includes(email));
}

@@ -89,0 +89,0 @@

{
"name": "nodebb-plugin-undelete-users",
"version": "1.0.4",
"version": "1.0.5",
"description": "A NodeBB plugin to re-associate deleted users with their content that are not removed.",

@@ -5,0 +5,0 @@ "main": "library.js",

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