nodebb-plugin-undelete-users
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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", |
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
19819