From 6fdcd3540b3075faa6c56601ac2bc49f0418520c Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Mon, 24 Oct 2022 12:25:09 -0400 Subject: [PATCH] send comment ID --- internal/worker/live_activities.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/worker/live_activities.go b/internal/worker/live_activities.go index 3aac3e9..914e4e0 100644 --- a/internal/worker/live_activities.go +++ b/internal/worker/live_activities.go @@ -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(),