nodebb-plugin-mentions 4.8.17 → 4.8.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/library.js +1 -1
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -260,7 +260,7 @@ async function getGroupsToNotify(matches) {
260
260
  }
261
261
 
262
262
  Mentions.actionPostsPurge = async (hookData) => {
263
- if (hookData && Array.isArray(hookData.pids)) {
263
+ if (hookData && Array.isArray(hookData.posts)) {
264
264
  await db.deleteAll([
265
265
  ...hookData.posts.map(p => `mentions:pid:${p.pid}:uids`),
266
266
  ...hookData.posts.map(p => `mentions:pid:${p.pid}:groups`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-mentions",
3
- "version": "4.8.17",
3
+ "version": "4.8.18",
4
4
  "description": "NodeBB Plugin that allows users to mention other users by prepending an '@' sign to their username",
5
5
  "main": "library.js",
6
6
  "repository": {