nodebb-plugin-mentions 3.0.9 → 3.0.10

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 +2 -2
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -172,8 +172,8 @@ async function getGroupsToNotify(matches) {
172
172
  Mentions.actionPostsPurge = async (hookData) => {
173
173
  if (hookData && Array.isArray(hookData.pids)) {
174
174
  await db.deleteAll([
175
- ...hookData.pids.map(pid => `mentions:pid:${pid}:uids`),
176
- ...hookData.pids.map(pid => `mentions:pid:${pid}:groups`),
175
+ ...hookData.posts.map(p => `mentions:pid:${p.pid}:uids`),
176
+ ...hookData.posts.map(p => `mentions:pid:${p.pid}:groups`),
177
177
  ]);
178
178
  }
179
179
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-mentions",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
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
  "scripts": {