diff --git a/core/server/services/mega/mega.js b/core/server/services/mega/mega.js index c36efc8004..e19e82d5e7 100644 --- a/core/server/services/mega/mega.js +++ b/core/server/services/mega/mega.js @@ -140,6 +140,10 @@ const addEmail = async (postModel, options) => { return null; } + if (limitService.isLimited('emails')) { + await limitService.errorIfWouldGoOverLimit('emails', {addedCount: membersCount}); + } + const postId = postModel.get('id'); const existing = await models.Email.findOne({post_id: postId}, knexOptions);