Removed "unsubscribed" events from member activity feed

refs 63f7f9a827
closes https://github.com/TryGhost/Team/issues/446

- email failures no longer auto-unsubscribe members so we shouldn't show that in the activity feed
This commit is contained in:
Kevin Ansfield 2021-01-12 18:44:43 +00:00
parent 4cfdd9f885
commit 17a69850a2

View File

@ -18,11 +18,6 @@ class MemberActivity {
icon: 'cross-circle', icon: 'cross-circle',
iconClass: 'red-d2', iconClass: 'red-d2',
tooltip: 'Email delivery failed' tooltip: 'Email delivery failed'
},
unsubscribed: {
icon: 'unsubscribed',
iconClass: 'red-d2',
message: 'Automatically unsubscribed due to permanent delivery failure'
} }
} }
@ -73,11 +68,6 @@ export default class MemberActivityFeedComponent extends Component {
timestamp: emailRecipient.failedAtUTC, timestamp: emailRecipient.failedAtUTC,
action: this.openEmailPreview.bind(this, emailRecipient.email) action: this.openEmailPreview.bind(this, emailRecipient.email)
})); }));
activities.push(new MemberActivity({
event: 'unsubscribed',
timestamp: emailRecipient.failedAtUTC.add(1, 'second')
}));
} else if (emailRecipient.processedAtUTC) { } else if (emailRecipient.processedAtUTC) {
activities.push(new MemberActivity({ activities.push(new MemberActivity({
event: 'sent', event: 'sent',