0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added flag for sending email when post is published

no-issue
This commit is contained in:
Fabien O'Carroll 2019-11-04 11:56:42 +07:00
parent f29b734feb
commit 3fc3c52dd3

View file

@ -29,6 +29,7 @@ module.exports = {
defaultTo: 'public',
validations: {isIn: [['public', 'members', 'paid']]}
},
send_email_when_published: {type: 'bool', nullable: false, defaultTo: false},
/**
* @deprecated: `author_id`, might be removed in Ghost 3.0
* If we keep it, then only, because you can easier query post.author_id than posts_authors[*].sort_order.