mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
97ea664d4d
refs https://forum.ghost.org/t/plaintext-value-is-empty-using-the-api/10537 - The `plaintext`/`html` fields were empty because `visibility` attribute was not present in response body on output serialization stage. `visibility` field is always needed for content gating to work as expected - Added `visibility` field in the input serialization layer as it wouldn't be possible to use content gating if added on model layer through `defaultColumnsToFetch` - Added test cases covering a bug |
||
---|---|---|
.. | ||
input | ||
output | ||
index.js |