Skip to content

Node.js based forum software built for the modern web

fix: notifs

Barış Soner Uşaklıed3a3672746a
diff --git a/src/notifications.js b/src/notifications.js
index 5f0c305673..fd0d01ce55 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -550,7 +550,7 @@ Notifications.merge = async function (notifications) {
const isMultiple = type === 'multiple';
const txArgs = [
`${mergeId}-${type}`,
- usernames.slice(0, usernames.length <= 3 ? 3 : 2).join(', '),
+ ...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
...(isMultiple ? [usernames.length - 2] : []),
notifObj.roomIcon,
notifObj.roomName,
@@ -571,7 +571,7 @@ Notifications.merge = async function (notifications) {
const isMultiple = type === 'multiple';
const txArgs = [
`${mergeId}-${type}`,
- usernames.slice(0, usernames.length <= 3 ? 3 : 2).join(', '),
+ ...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
...(isMultiple ? [usernames.length - 2] : []),
utils.decodeHTMLEntities(notifObj.topicTitle || ''),
];