mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +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 |
||
---|---|---|
.. | ||
apps | ||
auth | ||
mega | ||
members | ||
notifications | ||
permissions | ||
routing | ||
rss | ||
settings | ||
sitemap | ||
theme-engine | ||
themes | ||
url | ||
labs.test.js | ||
slack.test.js | ||
xmlrpc.test.js |