0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/test/regression/api/v2/content
Naz Gargol 97ea664d4d
🐛 Fixed empty html/plaintext fields for narrow fields parameter (#11505)
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
2020-01-08 14:43:21 +01:00
..
authors_spec.js 🐛 Fixed field filtering for /authors/:id endpoints 2019-03-05 15:18:32 +08:00
pages_spec.js Removed email related fields from API v2 responses 2019-12-16 20:01:38 +07:00
posts_spec.js 🐛 Fixed empty html/plaintext fields for narrow fields parameter (#11505) 2020-01-08 14:43:21 +01:00
tags_spec.js Improved naming for regression tests 2019-08-13 13:10:27 +08:00
utils.js Removed email related fields from API v2 responses 2019-12-16 20:01:38 +07:00