0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed suppression list data for emails with plus sign (#16140)

no issue

When fetching the suppression list data for emails with a plus sign, the
parsing of the NQL filter fails:

```at Child.applyDefaultAndCustomFilters (/Ghost/node_modules/@tryghost/bookshelf-filter/lib/bookshelf-filter.js:66:23)
[ghost] email:[simon+test@ghos
[ghost] ------------^
[ghost] Expecting 'OR', 'RBRACKET', got 'AND'
```
This commit is contained in:
Simon Backx 2023-01-18 10:17:57 +01:00 committed by GitHub
parent 9ba251238a
commit 2dc9c7dbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ class MailgunEmailSuppressionList extends AbstractEmailSuppressionList {
try {
const collection = await this.Suppression.findAll({
filter: `email:[${emails.join(',')}]`
filter: `email:[${emails.map(email => `'${email}'`).join(',')}]`
});
return emails.map((email) => {