0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/services
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
..
adapter-manager
api-version-compatibility Added a note about unusual implemenation 2022-04-22 16:31:56 +08:00
auth Updated newsletter fixtures to remove nullable sender name (#14479) 2022-04-14 23:45:59 +05:30
bulk-email
email-analytics
integrations
invitations
invites
jobs
mail
mega Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
members Added newsletter from address verification (#14491) 2022-04-26 12:31:34 +01:00
newsletters Added newsletter from address verification (#14491) 2022-04-26 12:31:34 +01:00
notifications
offers Fixed same redirectManager used in offer service between tests (#14340) 2022-03-24 10:18:52 +01:00
permissions
posts Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
public-config
redirects
route-settings
settings
stats Replaced stats service with @tryghost/stats-service (#14527) 2022-04-21 14:57:07 +01:00
stripe Cleaned up output errors during tests 2022-04-05 18:17:47 +08:00
themes Refactored the gscan version check to use single variable 2022-03-22 09:53:22 +08:00
url Added "contains" operator support to ?filter= query params (#14286) 2022-03-09 13:02:17 +00:00
webhooks Updated knex dependency 2022-03-30 08:47:57 +01:00
custom-theme-settings.js
limits.js
nft-oembed.js
oembed.js Added missing message string 2022-03-21 09:07:54 +00:00
slack.js Replaced schema.isPost in slack service /w custom fn 2022-04-05 14:24:42 +01:00
twitter-embed.js
users.js Refactored destroyUser method to async/await 2022-04-25 10:50:04 +08:00
xmlrpc.js