nodebb-plugin-mentions 3.0.6 → 3.0.7

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 -1
  2. package/package.json +3 -3
package/library.js CHANGED
@@ -388,7 +388,8 @@ async function stripDisallowedFullnames(users) {
388
388
 
389
389
  SocketPlugins.mentions.getTopicUsers = async (socket, data) => {
390
390
  const uids = await Topics.getUids(data.tid);
391
- const users = await User.getUsers(uids);
391
+ let users = await User.getUsers(uids);
392
+ users = users.filter(u => u && u.userslug);
392
393
  if (Meta.config.hideFullname) {
393
394
  return users;
394
395
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-mentions",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
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": {
@@ -31,8 +31,8 @@
31
31
  "xregexp": "^5.1.0"
32
32
  },
33
33
  "devDependencies": {
34
- "mocha": "9.2.0",
35
- "eslint": "8.9.0",
34
+ "mocha": "9.2.1",
35
+ "eslint": "8.10.0",
36
36
  "eslint-config-nodebb": "0.1.1",
37
37
  "eslint-plugin-import": "2.25.4"
38
38
  }