mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
🐛 Fixed plaintext
field being added as empty property when member post is requested
no issue - Tests in previous commit uncovered a bug with unwanted field attached to the post response
This commit is contained in:
parent
6fa20066f5
commit
11d1acb475
@ -7,7 +7,9 @@ const forPost = (attrs, frame) => {
|
||||
|
||||
if (!memberHasAccess) {
|
||||
['plaintext', 'html'].forEach((field) => {
|
||||
attrs[field] = '';
|
||||
if (attrs[field] !== undefined) {
|
||||
attrs[field] = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,9 @@ const forPost = (attrs, frame) => {
|
||||
|
||||
if (!memberHasAccess) {
|
||||
['plaintext', 'html'].forEach((field) => {
|
||||
attrs[field] = '';
|
||||
if (attrs[field] !== undefined) {
|
||||
attrs[field] = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user