nodebb-plugin-mentions 4.7.4 → 4.7.6
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mentions": "אזכורים",
|
|
3
3
|
"user-mentioned-you-in": "<strong>%1</strong> הזכיר אותך ב <strong>%2</strong>",
|
|
4
|
+
"user-mentioned-you-in-room": "<strong>%1</strong> הזכיר אותך ב <strong class=\"text-nowrap\"><i class=\"fa %2\"></i>%3</strong>",
|
|
4
5
|
"user-mentioned-group-in": "<strong>%1</strong> הזכיר את <strong>%2</strong> ב <strong>%3</strong>",
|
|
5
|
-
"
|
|
6
|
+
"notificationType-mention": "כאשר מישהו מזכיר אותך"
|
|
6
7
|
}
|
package/library.js
CHANGED
|
@@ -473,7 +473,7 @@ Mentions.parseRaw = async (content, type = 'default') => {
|
|
|
473
473
|
// Again, cleaning up lookaround leftover bits
|
|
474
474
|
const atIndex = match.indexOf('@');
|
|
475
475
|
const plain = match.slice(0, atIndex);
|
|
476
|
-
match = match.slice(atIndex);
|
|
476
|
+
match = match.slice(atIndex + 1);
|
|
477
477
|
if (user && user.uid) {
|
|
478
478
|
switch (Mentions._settings.display) {
|
|
479
479
|
case 'fullname':
|
|
@@ -489,7 +489,7 @@ Mentions.parseRaw = async (content, type = 'default') => {
|
|
|
489
489
|
if (type === 'markdown') {
|
|
490
490
|
str = `[${match}](${nconf.get('url')}${url})`;
|
|
491
491
|
} else {
|
|
492
|
-
str = `<a class="plugin-mentions-${mentionType} plugin-mentions-a" href="${url}"
|
|
492
|
+
str = `<a class="plugin-mentions-${mentionType} plugin-mentions-a" href="${nconf.get('relative_path')}${url}">${!Mentions._settings.display ? '@' : ''}<bdi>${match}</bdi></a>`;
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
return plain + str;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-mentions",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.6",
|
|
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": {
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"eslint": "^9.25.1",
|
|
34
34
|
"eslint-config-nodebb": "^1.1.4",
|
|
35
35
|
"eslint-plugin-import": "^2.31.0",
|
|
36
|
-
"mocha": "11.
|
|
36
|
+
"mocha": "11.2.2"
|
|
37
37
|
}
|
|
38
38
|
}
|