nodebb-plugin-mentions 4.8.5 → 4.8.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"mentions": "Mentions",
|
|
3
|
-
"user-mentioned-you-in": "<strong>%1</strong> mentioned you
|
|
3
|
+
"user-mentioned-you-in": "<strong>%1</strong> mentioned you<br/><strong>%2</strong>",
|
|
4
4
|
"user-mentioned-you-in-room": "<strong>%1</strong> mentioned you in <strong class=\"text-nowrap\"><i class=\"fa %2\"></i>%3</strong>",
|
|
5
|
-
"user-mentioned-group-in": "<strong>%1</strong> mentioned <strong>%2</strong
|
|
5
|
+
"user-mentioned-group-in": "<strong>%1</strong> mentioned <strong>%2</strong><br/><strong>%3</strong>",
|
|
6
6
|
"notificationType-mention": "When someone mentions you"
|
|
7
7
|
}
|
package/library.js
CHANGED
|
@@ -394,6 +394,10 @@ Mentions.getMatches = async (content) => {
|
|
|
394
394
|
};
|
|
395
395
|
|
|
396
396
|
async function filterMatches(matches) {
|
|
397
|
+
if (!matches.length) {
|
|
398
|
+
return [];
|
|
399
|
+
}
|
|
400
|
+
|
|
397
401
|
matches = Array.from(new Set(matches));
|
|
398
402
|
const slugs = matches.map(match => match.slice(1));
|
|
399
403
|
const exists = await meta.slugTaken(slugs);
|
package/package.json
CHANGED