mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
8d5e7ed695
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 |
||
---|---|---|
.. | ||
adapter-manager | ||
auth | ||
bulk-email | ||
email-analytics | ||
invitations | ||
invites | ||
jobs | ||
mega | ||
members | ||
notifications | ||
permissions | ||
public-config | ||
route-settings | ||
settings | ||
themes | ||
webhooks | ||
limits.js | ||
oembed.js | ||
slack.js | ||
users.js | ||
xmlrpc.js |