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", "public-chat": "Public Chats",
"follows": "Follows", "follows": "Follows",
"upvote": "Upvotes", "upvote": "Upvotes",
"awards": "Awards",
"new-flags": "New Flags", "new-flags": "New Flags",
"my-flags": "Flags assigned to me", "my-flags": "Flags assigned to me",
"bans": "Bans", "bans": "Bans",
@@ -100,5 +101,6 @@
"notificationType-new-register": "When someone gets added to registration queue", "notificationType-new-register": "When someone gets added to registration queue",
"notificationType-post-queue": "When a new post is queued", "notificationType-post-queue": "When a new post is queued",
"notificationType-new-post-flag": "When a post is flagged", "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:public-chat]]', filter: 'new-public-chat' },
{ name: '[[notifications:follows]]', filter: 'follow' }, { name: '[[notifications:follows]]', filter: 'follow' },
{ name: '[[notifications:upvote]]', filter: 'upvote' }, { name: '[[notifications:upvote]]', filter: 'upvote' },
{ name: '[[notifications:awards]]', filter: 'new-reward' },
]; ];
const moderatorFilters = [ const moderatorFilters = [

View File

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