Ghost/ghost/admin/app/serializers/page.js
Rishabh Garg 49b86b466a Allowed sending newsletter to free members only (#1751)
refs 6140a98351

This officially decouples the newsletter recipients from the post visibility allowing us to send emails to free members only.
2020-11-07 00:24:27 +05:30

17 lines
462 B
JavaScript

import PostSerializer from './post';
export default PostSerializer.extend({
serialize(/*snapshot, options*/) {
let json = this._super(...arguments);
// Properties that exist on the model but we don't want sent in the payload
delete json.email_subject;
delete json.send_email_when_published;
delete json.email_recipient_filter;
delete json.email_id;
delete json.email;
return json;
}
});