mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
49b86b466a
refs 6140a98351
This officially decouples the newsletter recipients from the post visibility allowing us to send emails to free members only.
17 lines
462 B
JavaScript
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;
|
|
}
|
|
});
|