mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Removed post.email
from serialization when saving posts
closes https://github.com/TryGhost/Team/issues/1647 - sending the embedded `email` record back to the API when saving could trigger "Request entity too large" errors for very large posts that were sent as email because it doubles up on the request size - `post.email` is a read-only property and is ignored by the API so there's no point serializing it and making request bodies larger than they need to be
This commit is contained in:
parent
741d00baf6
commit
d23b7525a4
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ export default class PostSerializer extends ApplicationSerializer.extend(Embedde
|
|||
delete json.url;
|
||||
delete json.send_email_when_published;
|
||||
delete json.email_recipient_filter;
|
||||
delete json.email;
|
||||
delete json.newsletter;
|
||||
// Deprecated property (replaced with data.authors)
|
||||
delete json.author;
|
||||
|
|
Loading…
Add table
Reference in a new issue