diff --git a/public/language/en-GB/notifications.json b/public/language/en-GB/notifications.json index 70bc156f63..3716089d71 100644 --- a/public/language/en-GB/notifications.json +++ b/public/language/en-GB/notifications.json @@ -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", diff --git a/src/groups/membership.js b/src/groups/membership.js index bfce9947de..247716a0ab 100644 --- a/src/groups/membership.js +++ b/src/groups/membership.js @@ -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', diff --git a/src/notifications.js b/src/notifications.js index fbcc978e18..91fb573991 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -24,6 +24,7 @@ Notifications.baseTypes = [ 'notificationType_follow', 'notificationType_new-chat', 'notificationType_group-invite', + 'notificationType_group-request-membership', ]; Notifications.privilegedTypes = [