mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
Add threadID
This commit is contained in:
parent
9ba4498c08
commit
49b1acc906
2 changed files with 3 additions and 1 deletions
|
@ -438,12 +438,13 @@ func payloadFromPost(post *reddit.Thing) *payload.Payload {
|
|||
payload := payload.
|
||||
NewPayload().
|
||||
AlertSummaryArg(post.Subreddit).
|
||||
Category("subreddit-watch").
|
||||
Category("subreddit-watcher").
|
||||
Custom("post_title", post.Title).
|
||||
Custom("post_id", post.ID).
|
||||
Custom("subreddit", post.Subreddit).
|
||||
Custom("author", post.Author).
|
||||
Custom("post_age", post.CreatedAt).
|
||||
ThreadID("subreddit-watcher").
|
||||
MutableContent().
|
||||
Sound("traloop.wav")
|
||||
|
||||
|
|
|
@ -329,6 +329,7 @@ func payloadFromTrendingPost(post *reddit.Thing) *payload.Payload {
|
|||
Custom("subreddit", post.Subreddit).
|
||||
Custom("author", post.Author).
|
||||
Custom("post_age", post.CreatedAt).
|
||||
ThreadID("trending-post").
|
||||
MutableContent().
|
||||
Sound("traloop.wav")
|
||||
|
||||
|
|
Loading…
Reference in a new issue