mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 09:16:05 +02:00
fix: type
This commit is contained in:
@@ -549,7 +549,7 @@ Notifications.merge = async function (notifications) {
|
|||||||
const type = typeFromLength(usernames);
|
const type = typeFromLength(usernames);
|
||||||
const isMultiple = type === 'multiple';
|
const isMultiple = type === 'multiple';
|
||||||
const txArgs = [
|
const txArgs = [
|
||||||
`${mergeId}-${type}`,
|
`${mergeId}${type ? `-${type}` : ''}`,
|
||||||
...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
|
...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
|
||||||
...(isMultiple ? [usernames.length - 2] : []),
|
...(isMultiple ? [usernames.length - 2] : []),
|
||||||
notifObj.roomIcon,
|
notifObj.roomIcon,
|
||||||
@@ -570,7 +570,7 @@ Notifications.merge = async function (notifications) {
|
|||||||
const type = typeFromLength(usernames);
|
const type = typeFromLength(usernames);
|
||||||
const isMultiple = type === 'multiple';
|
const isMultiple = type === 'multiple';
|
||||||
const txArgs = [
|
const txArgs = [
|
||||||
`${mergeId}-${type}`,
|
`${mergeId}${type ? `-${type}` : ''}`,
|
||||||
...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
|
...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
|
||||||
...(isMultiple ? [usernames.length - 2] : []),
|
...(isMultiple ? [usernames.length - 2] : []),
|
||||||
utils.decodeHTMLEntities(notifObj.topicTitle || ''),
|
utils.decodeHTMLEntities(notifObj.topicTitle || ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user