From 2b01997629014a55a093757becb801127e6272e1 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 26 Apr 2022 14:18:34 +0200 Subject: [PATCH] Added newsletter relation to activity feed refs https://github.com/TryGhost/Team/issues/1478 Makes sure the newsletter relation is returned in the activity feed for susbcribe events (aka newsletter events). Tests in https://github.com/TryGhost/Ghost/pull/14585 --- ghost/members-api/lib/repositories/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/members-api/lib/repositories/event.js b/ghost/members-api/lib/repositories/event.js index c9a34b2830..69d52600cf 100644 --- a/ghost/members-api/lib/repositories/event.js +++ b/ghost/members-api/lib/repositories/event.js @@ -30,7 +30,7 @@ module.exports = class EventRepository { async getNewsletterSubscriptionEvents(options = {}, filters = {}) { options = { ...options, - withRelated: ['member'], + withRelated: ['member', 'newsletter'], filter: [] }; if (filters['data.created_at']) {