0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/canary
Kevin Ansfield 5fd2b7fed1 Added send_email_when_published query param to posts endpoint
no issue

- having a `send_email_when_published` property on the Post resource that only has an effect at certain times was confusing and was causing issues with clients that needed to know details of how that toggle worked
- makes `post.send_email_when_published` a fully read-only property in the API
- adds support for `?send_email_when_published=true` query param that can be passed in POST/PUT requests to the posts endpoint when scheduling or publishing a post - this is the only way to set `post.send_email_when_published` to `true`
- adds handling to ensure that `post.send_email_when_published` is always reset to `false` when reverting a post back to a draft _unless_ an email has already been sent
2019-11-14 17:29:03 +00:00
..
utils Added send_email_when_published query param to posts endpoint 2019-11-14 17:29:03 +00:00
actions.js Updated canary actions endpoint 2019-08-14 17:40:36 +08:00
authentication.js
authors-public.js
config.js
db.js
email-preview.js Fixed post not showing authors in email 2019-11-14 10:45:05 +05:30
email.js Implemented GET /emails/:id endpoint 2019-11-06 15:56:56 +07:00
images.js
index.js Implemented GET /emails/:id endpoint 2019-11-06 15:56:56 +07:00
integrations.js
invites.js
mail.js
members.js 🐛 Fixed members export limiting to 15 members only (#11299) 2019-10-29 10:20:32 +05:30
notifications.js
oembed.js 🐛 Fixed wrong icon being pulled into bookmark cards for some sites (#11055) 2019-08-27 19:32:26 +01:00
pages-public.js
pages.js Permission restrictions for post.visibility modifications (#11213) 2019-10-08 15:44:27 +02:00
posts-public.js
posts.js Added send_email_when_published query param to posts endpoint 2019-11-14 17:29:03 +00:00
preview.js
redirects.js
roles.js
schedules.js 🏗 Migrated scheduler to work with v2 API (#11142) 2019-09-23 21:42:53 +05:30
session.js 💡Migrated session controllers for compatibility with "frame" (#11101) 2019-09-11 11:28:55 +02:00
settings-public.js
settings.js Added permission restrictions to editing members flag (#11217) 2019-10-09 10:26:54 +02:00
site.js
slack.js
slugs.js
tags-public.js
tags.js
themes.js
users.js Removed all accesstokens and refreshtokens related code 2019-09-12 15:45:27 +01:00
webhooks.js