nodebb-plugin-mentions 4.8.2 → 4.8.3

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.
package/library.js CHANGED
@@ -495,7 +495,7 @@ Mentions.parseRaw = async (content, type = 'default') => {
495
495
 
496
496
  let str;
497
497
  if (type === 'markdown') {
498
- str = `[${match}](${nconf.get('url')}${url})`;
498
+ str = `[${!Mentions._settings.display ? '@' : ''}${match}](${nconf.get('url')}${url})`;
499
499
  } else {
500
500
  str = `<a class="plugin-mentions-${mentionType} plugin-mentions-a" href="${nconf.get('relative_path')}${url}" aria-label="Profile: ${match}">${!Mentions._settings.display ? '@' : ''}<bdi>${match}</bdi></a>`;
501
501
  }
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nodebb-plugin-mentions",
3
- "version": "4.8.2",
3
+ "version": "4.8.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nodebb-plugin-mentions",
9
- "version": "4.8.2",
9
+ "version": "4.8.3",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "html-entities": "^2.3.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-mentions",
3
- "version": "4.8.2",
3
+ "version": "4.8.3",
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": {