feat: add new notif type for public rooms

change notification text to display more users
  * user1 wrote in general
  * user1 and user2 wrote in general
  * user1, user2 and user3 wrote in general
  * user1. user2 and 2 others wrote in general
This commit is contained in:
Barış Soner Uşaklı
2023-08-20 11:51:09 -04:00
parent ca1fda764d
commit b65d8e823a
6 changed files with 58 additions and 12 deletions

View File

@@ -14,6 +14,7 @@ notificationsController.get = async function (req, res, next) {
{ name: '[[notifications:replies]]', filter: 'new-reply' },
{ name: '[[notifications:chat]]', filter: 'new-chat' },
{ name: '[[notifications:group-chat]]', filter: 'new-group-chat' },
{ name: '[[notifications:public-chat]]', filter: 'new-public-chat' },
{ name: '[[notifications:follows]]', filter: 'follow' },
{ name: '[[notifications:upvote]]', filter: 'upvote' },
];