nodebb-plugin-mentions 4.5.0 → 4.5.2

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 -2
  2. package/package.json +2 -2
package/library.js CHANGED
@@ -406,13 +406,12 @@ Mentions.parseRaw = async (content) => {
406
406
 
407
407
  switch (true) {
408
408
  case !!uid: {
409
- url = utils.isNumber(user.uid) ? `${nconf.get('url')}/uid/${user.uid}` : (user.url || user.uid);
409
+ url = utils.isNumber(user.uid) ? `${nconf.get('url')}/user/${slug}` : (user.url || user.uid);
410
410
  break;
411
411
  }
412
412
 
413
413
  case !!cid: {
414
414
  url = `${nconf.get('url')}/category/${category.slug}`;
415
- console.log('setting url', url);
416
415
  break;
417
416
  }
418
417
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-mentions",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
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,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "mocha": "10.4.0",
34
- "eslint": "8.57.0",
34
+ "eslint": "9.0.0",
35
35
  "eslint-config-nodebb": "0.2.1",
36
36
  "eslint-plugin-import": "2.29.1"
37
37
  }