Ghost/core/server/api/v2/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 Added comments for Ghost API 2019-05-06 14:49:25 +02:00
permissions.js Fixed unsafeAttributes fetching in Admin API v2 2019-10-09 21:16:27 +02:00