mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
27337e5f00
refs https://github.com/TryGhost/Team/issues/1621 We want to allow previewing emails based on the selected newsletter. The post model doesn't get a newsletter attached until a publish occurs so we can't use `post.newsletter` and need to give the option of specifying which newsletter to preview via query params. - added support for `newsletter` query param on the `GET /email_previews/posts/:id/` endpoint where the value is a newsletter slug - updated `generateEmailContent()` signature to use an options object because the order of memberSegment/newsletter arguments doesn't matter and is difficult to reason about if not named - adjusted `generateEmailContent()` to fetch the newsletter matching the provided slug, falling back to the default newsletter if no slug is provided |
||
---|---|---|
.. | ||
adapter-manager | ||
api-version-compatibility | ||
auth | ||
bulk-email | ||
email-analytics | ||
frontend-data-service | ||
integrations | ||
invitations | ||
invites | ||
jobs | ||
mega | ||
members | ||
newsletters | ||
notifications | ||
offers | ||
permissions | ||
posts | ||
public-config | ||
redirects | ||
route-settings | ||
settings | ||
stats | ||
stripe | ||
themes | ||
url | ||
webhooks | ||
custom-theme-settings.js | ||
limits.js | ||
nft-oembed.js | ||
oembed.js | ||
slack.js | ||
twitter-embed.js | ||
users.js | ||
xmlrpc.js |