mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +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' |
||
---|---|---|
.. | ||
admin | ||
content | ||
members | ||
members-comments | ||
shared | ||
webmentions |