Updated comment events to use parent instead of parent_id

This commit is contained in:
Simon Backx 2022-07-22 14:34:43 +02:00
parent 0963da7a2e
commit c9a3211032

View File

@ -129,7 +129,7 @@ function getAction(event) {
}
if (event.type === 'comment_event') {
if (event.data.parent_id) {
if (event.data.parent) {
return 'replied on';
}
return 'commented on';
@ -157,7 +157,7 @@ function getObject(event, hasMultipleNewsletters) {
}
if (event.type === 'comment_event') {
if (event.data.parent_id) {
if (event.data.parent) {
return 'a comment';
}