mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Updated comment events to use parent instead of parent_id
This commit is contained in:
parent
0963da7a2e
commit
c9a3211032
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user