mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 21:03:29 +03:00
e73b16979f
refs https://github.com/TryGhost/Arch/issues/87 - The Members Admin API and members.* webhooks were returning too many fields in the nested `newsletters` objects. There was no "allowlist" serializer for the newsletter object, which meant every time we add a new field to the database we would unintentionally return extra fields without a second thought. - With this change only following fields will be returned with `members[x].newsletters[x]`: 'id', 'name', 'description', 'status' |
||
---|---|---|
.. | ||
__snapshots__ | ||
members.test.js | ||
pages.test.js | ||
posts.test.js | ||
site.test.js | ||
tags.test.js |