Ghost/core/server
Thibaut Patel ed29c7addf Filtered member email recipients based on the newsletter subscriptions (#14489)
refs https://github.com/TryGhost/Team/issues/1524

- We need to fetch the post newsletter to grab the slug as it's needed for the member NQL filter.
- We can then use the newsletter slug and append it in the existing member NQL filter.
- Removed `subscribed:true` when an email is sent to a newsletter and replaced it with the newsletter id
- Added `status:-free` when an email is sent to a newsletter with `visibility` set to `paid`
- Added tests what happens when you publish without newsletter_id
- Added tests what happens when you publish with newsletter_id

Co-authored-by: Simon Backx <simon@ghost.org>
2022-04-26 12:31:34 +01:00
..
adapters
api Added the newsletter API ?include=count.posts and ?include=count.members query options (#14525) 2022-04-26 12:31:34 +01:00
data Mapped subscribers to newsletter (#14518) 2022-04-26 12:31:34 +01:00
lib
models Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
services Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
views
web Added newsletter from address verification (#14491) 2022-04-26 12:31:34 +01:00
analytics-events.js
ghost-server.js
notify.js
overrides.js
run-update-check.js
update-check.js