0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/api/v2/utils/serializers
Kevin Ansfield 4e724b6451
Fixed order of flatten/clean operations in posts output serializers (#13038)
no issue

`post.clean()` implementation was expecting a flat structure representing final API output but was being called before the flatten operation for `posts_meta` meaning the structure looked like `attrs.posts_meta.property` instead

- adjusted order in output serializers to call `clean()` after flattening the `posts_meta` object
- in `v2` output serializer, moved removal of properties from the serializer into `clean()` for consistency
2021-06-10 15:14:02 +01:00
..
input Disallowed aditing "labs" settings in v2/v3 APIs 2021-06-08 02:18:17 +12:00
output Fixed order of flatten/clean operations in posts output serializers (#13038) 2021-06-10 15:14:02 +01:00
index.js