0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core
Kevin Ansfield c46303cb2b
🐛 Fixed email analytics crashing when processing unsubscribe/complaint events (#14883)
refs https://github.com/TryGhost/Team/issues/1649

The event handlers for `unsubscribed`/`complained` events originating from Mailgun were still using the now-deleted `member.subscribed` field resulting in errors and aborted attempts at processing the Mailgun event log.

- `member.subscribed` no longer exists, replaced that part of the query with a delete of member<->newsletter association rows from the `members_newsletters` pivot table
- kept the member `updated_at` bump so we have some timestamp record of an update
- added creation of `member_subscribe_event` records for the newsletter unsubscribes to keep stats and history in check
  - the unsubscribed/complained events do or at least should originate from a member action so "member" is more appropriate than "system" even though the event is being handled by an internal system
2022-05-24 12:38:42 +01:00
..
admin@b554268af4 Updated Admin to v5.0.0 2022-05-23 13:20:52 +01:00
cli Added docs for writing new commands 2022-05-17 17:16:44 +01:00
frontend 🐛 Fixed page vs post preview template picking 2022-05-24 15:33:47 +08:00
server 🐛 Fixed email analytics crashing when processing unsubscribe/complaint events (#14883) 2022-05-24 12:38:42 +01:00
shared Fixed minor weirdnesses with excerpts 2022-05-24 12:35:59 +01:00
app.js
boot.js Added frontend key to ghost_head for portal (#14782) 2022-05-11 17:34:31 +01:00
bridge.js Renamed lang and session_secret default settings (#14791) 2022-05-12 15:07:05 +01:00