Ghost/core
Kevin Ansfield 8d5e7ed695
🐛 Fixed unsubscribed members receiving email when a post is sent to all members (#13181)
refs https://github.com/TryGhost/Team/issues/935

The problem was incorrect operator precedence when multiple statements existed in the filter original filter when we transform it to enforce `subscribed:true` before sending.

- free only - subscribed:true+status:free - no issue
- paid only - subscribed:true+status:-free - no issue
- all - subscribed:true+status:-free,status:free - the ,status:free part is treated as a separate OR statement meaning the subscribed:true is not applied to it and free members that are unsubscribed will receive the email

- extracted the filter transform into a separate function so it can be unit tested
- updated the transform to use `()` for operator precedence, eg: `subscribed:true+(status:-free,status:free)`
- used transform function in `addEmail()` and `getEmailMemberRows()`
- fixed `sent/send` typo in error message
2021-07-26 12:47:03 +01:00
..
client@46973d2473 Updated Ghost-Admin to v4.10.1 2021-07-22 18:16:20 +01:00
frontend Updated copy for tiers CTA 2021-07-19 13:14:37 +02:00
server 🐛 Fixed unsubscribed members receiving email when a post is sent to all members (#13181) 2021-07-26 12:47:03 +01:00
shared Added checkEmailList alpha labs flag 2021-07-20 13:59:36 +04:00
app.js Added Sentry to new boot process 2021-02-19 09:20:41 +00:00
boot.js Revert "Moved vhost mounts into boot file" 2021-07-08 07:10:18 +01:00
bridge.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00