feat: award notif filter

This commit is contained in:
Barış Soner Uşaklı
2023-10-16 19:18:17 -04:00
parent c1ae879d90
commit 9e9046bf65
3 changed files with 5 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
"public-chat": "Public Chats",
"follows": "Follows",
"upvote": "Upvotes",
"awards": "Awards",
"new-flags": "New Flags",
"my-flags": "Flags assigned to me",
"bans": "Bans",
@@ -100,5 +101,6 @@
"notificationType-new-register": "When someone gets added to registration queue",
"notificationType-post-queue": "When a new post is queued",
"notificationType-new-post-flag": "When a post is flagged",
"notificationType-new-user-flag": "When a user is flagged"
"notificationType-new-user-flag": "When a user is flagged",
"notificationType-new-reward": "When you earn a new reward"
}

View File

@@ -18,6 +18,7 @@ notificationsController.get = async function (req, res, next) {
{ name: '[[notifications:public-chat]]', filter: 'new-public-chat' },
{ name: '[[notifications:follows]]', filter: 'follow' },
{ name: '[[notifications:upvote]]', filter: 'upvote' },
{ name: '[[notifications:awards]]', filter: 'new-reward' },
];
const moderatorFilters = [

View File

@@ -40,6 +40,7 @@ Notifications.baseTypes = [
'notificationType_group-invite',
'notificationType_group-leave',
'notificationType_group-request-membership',
'notificationType_new-reward',
];
Notifications.privilegedTypes = [