Ghost/ghost
Simon Backx 5235d67fed
Added comment events to activity feed (#15064)
refs https://github.com/TryGhost/Team/issues/1709

- New event type `comment_event` (comments and replies of a member in the activity feed)
- Includes member, post and parent relation by default
- Added new output mapper for ActivityFeed events

**Changes to `Comment` model:**
* **Only limit comment fetched to root comments when not authenticated as a user:** 
`enforcedFilters` is applied to all queries, which is a problem because for the activity feed we also need to fetch comments which have a parent_id that is not null (`Member x replied to a comment`). The current filter in the model is specifically for the members API, not the admin API (so checking the user should fix that, not sure if that is a good pattern but couldn’t find a better alternative).
* **Only set default relations for comments when withRelated is empty or not set:**
`defaultRelations`: Right now, for every fetch it would force all these relations. But we don’t need all those relations for the activity feed; So I updated the pattern to only set the default relations when it is empty (which we also do on a couple of other places and seems like a good pattern). I also updated the comments-ui frontend to not send ?include
2022-07-25 17:48:23 +02:00
..
core Added comment events to activity feed (#15064) 2022-07-25 17:48:23 +02:00
custom-theme-settings-service Tidied up package READMEs 2022-07-25 15:17:12 +02:00
domain-events Tidied up package READMEs 2022-07-25 15:17:12 +02:00
email-analytics-provider-mailgun Tidied up package READMEs 2022-07-25 15:17:12 +02:00
email-analytics-service Tidied up package READMEs 2022-07-25 15:17:12 +02:00
express-dynamic-redirects Tidied up package READMEs 2022-07-25 15:17:12 +02:00
magic-link Tidied up package READMEs 2022-07-25 15:17:12 +02:00
member-analytics-service Tidied up package READMEs 2022-07-25 15:17:12 +02:00
member-events Added members.last_commented_at and last_seen_at update when commenting (#15088) 2022-07-25 17:35:46 +02:00
members-analytics-ingress Tidied up package READMEs 2022-07-25 15:17:12 +02:00
members-api Added comment events to activity feed (#15064) 2022-07-25 17:48:23 +02:00
members-csv Tidied up package READMEs 2022-07-25 15:17:12 +02:00
members-events-service Added members.last_commented_at and last_seen_at update when commenting (#15088) 2022-07-25 17:35:46 +02:00
members-importer Tidied up package READMEs 2022-07-25 15:17:12 +02:00
members-ssr Tidied up package READMEs 2022-07-25 15:17:12 +02:00
offers Tidied up package READMEs 2022-07-25 15:17:12 +02:00
payments Tidied up package READMEs 2022-07-25 15:17:12 +02:00
stripe Tidied up package READMEs 2022-07-25 15:17:12 +02:00
verification-trigger Tidied up package READMEs 2022-07-25 15:17:12 +02:00