Ghost/ghost/email-service/lib
Rishabh Garg a09e86da05
Fixed email preview text with new stability flow (#15996)
closes https://github.com/TryGhost/Team/issues/2382

The preview text is getting set to subject line in the new email flow so it repeats multiple times in the inbox(subject+preview+title). This was because the new flow doesn't use the post serialisation that the old system did, causing excerpt to be empty in the email rendering.

Old system was using post serialisation here -
a721e4f2d7/ghost/core/core/server/services/mega/post-email-serializer.js (L136-L139).

This change adds explicit method to calculate the preview text for email in email renderer service using same logic as used in old system.

Co-authored-by: Simon Backx <git@simonbackx.com>
2022-12-14 15:54:26 +05:30
..
email-templates 🐛 Removed horizontal scroll for long author's name (#15985) 2022-12-12 15:36:58 +04:00
batch-sending-service.js Disabled autoRefresh for batch sending service to increase performance 2022-12-05 12:09:30 +01:00
email-controller.js Implemented email previews and tests using new email flow (#15899) 2022-11-30 13:56:28 +01:00
email-event-processor.js 🐛 Handled unknown Mailgun events (#15995) 2022-12-14 11:17:45 +01:00
email-event-storage.js 🐛 Fixed setting delivered_at to null after hard bounce (#15942) 2022-12-06 10:26:54 +05:30
email-renderer.js Fixed email preview text with new stability flow (#15996) 2022-12-14 15:54:26 +05:30
email-segmenter.js Updated unit test coverage for email service (#15913) 2022-12-02 00:33:28 +05:30
email-service.js 🐛 Handled unknown Mailgun events (#15995) 2022-12-14 11:17:45 +01:00
mailgun-email-provider.js Added E2E tests for batch sending (#15910) 2022-12-01 13:43:49 +01:00
sending-service.js Added E2E tests for batch sending (#15910) 2022-12-01 13:43:49 +01:00