mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
feat: award notif filter
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -40,6 +40,7 @@ Notifications.baseTypes = [
|
||||
'notificationType_group-invite',
|
||||
'notificationType_group-leave',
|
||||
'notificationType_group-request-membership',
|
||||
'notificationType_new-reward',
|
||||
];
|
||||
|
||||
Notifications.privilegedTypes = [
|
||||
|
||||
Reference in New Issue
Block a user