Add threadID

This commit is contained in:
Andre Medeiros 2022-05-01 13:36:35 -04:00
parent 9ba4498c08
commit 49b1acc906
2 changed files with 3 additions and 1 deletions

View file

@ -438,12 +438,13 @@ func payloadFromPost(post *reddit.Thing) *payload.Payload {
payload := payload. payload := payload.
NewPayload(). NewPayload().
AlertSummaryArg(post.Subreddit). AlertSummaryArg(post.Subreddit).
Category("subreddit-watch"). Category("subreddit-watcher").
Custom("post_title", post.Title). Custom("post_title", post.Title).
Custom("post_id", post.ID). Custom("post_id", post.ID).
Custom("subreddit", post.Subreddit). Custom("subreddit", post.Subreddit).
Custom("author", post.Author). Custom("author", post.Author).
Custom("post_age", post.CreatedAt). Custom("post_age", post.CreatedAt).
ThreadID("subreddit-watcher").
MutableContent(). MutableContent().
Sound("traloop.wav") Sound("traloop.wav")

View file

@ -329,6 +329,7 @@ func payloadFromTrendingPost(post *reddit.Thing) *payload.Payload {
Custom("subreddit", post.Subreddit). Custom("subreddit", post.Subreddit).
Custom("author", post.Author). Custom("author", post.Author).
Custom("post_age", post.CreatedAt). Custom("post_age", post.CreatedAt).
ThreadID("trending-post").
MutableContent(). MutableContent().
Sound("traloop.wav") Sound("traloop.wav")