send comment ID

This commit is contained in:
Andre Medeiros 2022-10-24 12:25:09 -04:00
parent 3da569fd37
commit 6fdcd3540b

View file

@ -24,6 +24,7 @@ import (
type DynamicIslandNotification struct { type DynamicIslandNotification struct {
PostCommentCount int `json:"postTotalComments"` PostCommentCount int `json:"postTotalComments"`
PostScore int64 `json:"postScore"` PostScore int64 `json:"postScore"`
CommentID string `json:"commentId"`
CommentAuthor string `json:"commentAuthor"` CommentAuthor string `json:"commentAuthor"`
CommentBody string `json:"commentBody"` CommentBody string `json:"commentBody"`
CommentAge int64 `json:"commentAge"` CommentAge int64 `json:"commentAge"`
@ -244,6 +245,7 @@ func (lac *liveActivitiesConsumer) Consume(delivery rmq.Delivery) {
din := DynamicIslandNotification{ din := DynamicIslandNotification{
PostCommentCount: tr.Post.NumComments, PostCommentCount: tr.Post.NumComments,
PostScore: tr.Post.Score, PostScore: tr.Post.Score,
CommentID: comment.ID,
CommentAuthor: comment.Author, CommentAuthor: comment.Author,
CommentBody: comment.Body, CommentBody: comment.Body,
CommentAge: comment.CreatedAt.Unix(), CommentAge: comment.CreatedAt.Unix(),