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