0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core
Kevin Ansfield c1d66f0b01
Added email_recipients include option to members API read endpoint (#12471)
refs https://github.com/TryGhost/Ghost-Admin/pull/1796

We want to be able to display an email activity timeline in Ghost-Admin for each member. The quickest way to achieve that right now is to provide access to the `email_recipient` data for the member when fetching, this will allow clients to build up a timeline based on the event timestamps included with each email_recipient/email pair.

- sets up `email_recipients` relationship in `Member` model
- updates members API read endpoint to accept an `email_recipients` include parameter
  - appends `email_recipients.email` to the `withRelated` array when `email_recipients` is included so that we have data available for email subject and html/plaintext for previews
- updates members API output serializer to include the email_recipients object in the output
2020-12-10 10:04:05 +00:00
..
client@ee071537ca Updated Ghost-Admin to v3.39.3 2020-12-08 09:37:00 +00:00
frontend Refactored core/server/lib/image for Dependency Injection (#12463) 2020-12-09 13:19:22 +01:00
server Added email_recipients include option to members API read endpoint (#12471) 2020-12-10 10:04:05 +00:00
shared Added emailAnalytics config feature flag (#12443) 2020-12-02 13:22:12 +00:00
index.js Refactored server announce functions to be clearer 2020-08-09 17:25:15 +01:00