← All changes
|
backend/src/Data/Transformers/CommentTransformer.php
+8
-8
0.5.1
→
1.4.7
View file →
| @@ -37,22 +37,22 @@ | ||
| 37 | 37 | 'authorURL' => get_comment_author_url( $comment->comment_ID ), |
| 38 | 38 | 'thumbnail' => get_avatar_url( $comment->comment_author_email ), |
| 39 | 39 | |
| 40 | 40 | 'author' => [ |
| 41 | - 'name' => $comment->comment_author, | |
| 42 | - 'email' => $comment->comment_author_email, | |
| 43 | - 'ip' => $comment->comment_author_IP, | |
| 44 | - 'url' => get_comment_author_url( $comment->comment_ID ), | |
| 45 | - 'avatar' => get_avatar_url( $comment->comment_author_email ), | |
| 41 | + 'name' => $comment->comment_author, | |
| 42 | + 'email' => $comment->comment_author_email, | |
| 43 | + 'ip' => $comment->comment_author_IP, | |
| 44 | + 'url' => get_comment_author_url( $comment->comment_ID ), | |
| 45 | + 'avatar' => get_avatar_url( $comment->comment_author_email ), | |
| 46 | 46 | ], |
| 47 | 47 | |
| 48 | 48 | // Post Meta |
| 49 | 49 | 'postId' => $post->ID, |
| 50 | 50 | 'postTitle' => $post->post_title, |
| 51 | - 'post' => [ | |
| 51 | + 'post' => [ | |
| 52 | 52 | 'id' => $post->ID, |
| 53 | 53 | 'title' => $post->post_title, |
| 54 | - 'thumbnail' => '' | |
| 55 | - ] | |
| 54 | + 'thumbnail' => '', | |
| 55 | + ], | |
| 56 | 56 | ]; |
| 57 | 57 | } |
| 58 | 58 | } |