mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +00:00
send comment ID
This commit is contained in:
parent
3da569fd37
commit
6fdcd3540b
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ import (
|
|||
type DynamicIslandNotification struct {
|
||||
PostCommentCount int `json:"postTotalComments"`
|
||||
PostScore int64 `json:"postScore"`
|
||||
CommentID string `json:"commentId"`
|
||||
CommentAuthor string `json:"commentAuthor"`
|
||||
CommentBody string `json:"commentBody"`
|
||||
CommentAge int64 `json:"commentAge"`
|
||||
|
@ -244,6 +245,7 @@ func (lac *liveActivitiesConsumer) Consume(delivery rmq.Delivery) {
|
|||
din := DynamicIslandNotification{
|
||||
PostCommentCount: tr.Post.NumComments,
|
||||
PostScore: tr.Post.Score,
|
||||
CommentID: comment.ID,
|
||||
CommentAuthor: comment.Author,
|
||||
CommentBody: comment.Body,
|
||||
CommentAge: comment.CreatedAt.Unix(),
|
||||
|
|
Loading…
Reference in a new issue