Ghost/ghost/email-service
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
..
lib Fixed email preview text with new stability flow (#15996) 2022-12-14 15:54:26 +05:30
test Fixed email preview text with new stability flow (#15996) 2022-12-14 15:54:26 +05:30
.eslintrc.js
index.js Added mailgun provider for sending emails (#15896) 2022-11-30 16:21:58 +05:30
package.json Updated @tryghost dependencies (#16005) 2022-12-14 11:18:55 +07:00
README.md

Email Service

Manages how posts are sent via email

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests