diff --git a/layouts/notifications/script.js b/layouts/notifications/script.js index 5b94188a..b63280ef 100644 --- a/layouts/notifications/script.js +++ b/layouts/notifications/script.js @@ -825,13 +825,18 @@ async function renderNotifications(data, append = false) { matches++; }); }; + let users = n.template.aggregateUserActionsV1.fromUsers.map(u => data.globalObjects.users[u.user.id]); + + if(n.icon.id === 'recommendation_icon') { + notificationHeader = `${escapeHTML(notificationHeader)} tweeted something you might like`; + } let iconClasses = { 'heart_icon': 'ni-favorite', 'person_icon': 'ni-follow', 'retweet_icon': 'ni-retweet', + 'recommendation_icon': 'ni-recommend' }; - let users = n.template.aggregateUserActionsV1.fromUsers.map(u => data.globalObjects.users[u.user.id]); notificationDiv.innerHTML = /*html*/`