0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/api/canary/utils
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
..
serializers 🐛 Fixed empty html/plaintext fields for narrow fields parameter (#11505) 2020-01-08 14:43:21 +01:00
validators Allowed comment_id and uuid in post API input 2019-12-16 18:22:48 +05:30
index.js
permissions.js Added permission restrictions to editing members flag (#11217) 2019-10-09 10:26:54 +02:00