Improved newsletter activity feed copy

refs https://github.com/TryGhost/Team/issues/1570
refs https://ghost.slack.com/archives/C02G9E68C/p1651581277636729?thread_ts=1651569897.474819&cid=C02G9E68C

Activity feed now shows 'Subscribed to newsletter – Weekly newsletter" text
This commit is contained in:
Simon Backx 2022-05-03 14:37:45 +02:00
parent 5c6316f051
commit a3218b0a2b

View File

@ -128,7 +128,7 @@ function getAction(event) {
function getObject(event) {
if (event.type === 'newsletter_event') {
if (event.data.newsletter && event.data.newsletter.name) {
return 'emails from ' + event.data.newsletter.name;
return 'newsletter ' + event.data.newsletter.name;
}
return 'emails';
}