Ghost/ghost/admin/app/utils
Kevin Ansfield 923a9a1cd6
🐛 Fixed default email recipients always being "everyone" rather than matching post visibility (#16247)
refs https://github.com/TryGhost/Ghost/issues/16125

The previous fix for incorrect recipient details being shown when
re-sending a failed email introduced another bug that prevented the
"Match post visibility" default recipients setting from working.

- the server always sets `post.emailSegment` to `'all'` for new posts so
the publish flow recipient filter logic that checked for
`post.emailSegment` being present always defaulted to `'all'` rather
than falling back to the selected default recipients setting
- when a post has been published but the email failed it will have its
`newsletter` value set so we can use that as a check for using the
`post.emailSegment` value in place of the default recipients setting
2023-02-08 11:41:48 +00:00
..
bound-one-way.js
caja-sanitizers.js
copy-text-to-clipboard.js
ctrl-or-cmd.js
currency.js
flatten-grouped-options.js
format-markdown.js
get-scroll-parent.js
ghost-paths.js
isNumber.js
link-component.js
password-generator.js
publish-options.js 🐛 Fixed default email recipients always being "everyone" rather than matching post visibility (#16247) 2023-02-08 11:41:48 +00:00
route.js
shortcuts.js
slug-url.js
window-proxy.js