mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
feat: award notif filter
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = [
|
||||||
|
|||||||
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user