mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 11:47:42 +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.
|
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")
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue