mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: #7120
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
"notificationType_follow": "When someone starts following you",
|
||||
"notificationType_new-chat": "When you receive a chat message",
|
||||
"notificationType_group-invite": "When you receive a group invite",
|
||||
"notificationType_group-request-membership": "When someone requests to join a group you own",
|
||||
"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",
|
||||
|
||||
@@ -20,6 +20,7 @@ module.exports = function (Groups) {
|
||||
async.parallel({
|
||||
notification: function (next) {
|
||||
notifications.create({
|
||||
type: 'group-request-membership',
|
||||
bodyShort: '[[groups:request.notification_title, ' + username + ']]',
|
||||
bodyLong: '[[groups:request.notification_text, ' + username + ', ' + groupName + ']]',
|
||||
nid: 'group:' + groupName + ':uid:' + uid + ':request',
|
||||
|
||||
@@ -24,6 +24,7 @@ Notifications.baseTypes = [
|
||||
'notificationType_follow',
|
||||
'notificationType_new-chat',
|
||||
'notificationType_group-invite',
|
||||
'notificationType_group-request-membership',
|
||||
];
|
||||
|
||||
Notifications.privilegedTypes = [
|
||||
|
||||
Reference in New Issue
Block a user