0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

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.type === 'comment_event') {
if (event.data.parent_id) { if (event.data.parent) {
return 'replied on'; return 'replied on';
} }
return 'commented on'; return 'commented on';
@ -157,7 +157,7 @@ function getObject(event, hasMultipleNewsletters) {
} }
if (event.type === 'comment_event') { if (event.type === 'comment_event') {
if (event.data.parent_id) { if (event.data.parent) {
return 'a comment'; return 'a comment';
} }