mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
tweak notification
This commit is contained in:
parent
a26b1f6a32
commit
a63171f833
1 changed files with 4 additions and 2 deletions
|
@ -408,10 +408,12 @@ func (sc *subredditsConsumer) Consume(delivery rmq.Delivery) {
|
|||
}
|
||||
|
||||
func payloadFromPost(post *reddit.Thing) *payload.Payload {
|
||||
title := fmt.Sprintf("📣 Subreddit Watch (r/%s)", post.Subreddit)
|
||||
|
||||
payload := payload.
|
||||
NewPayload().
|
||||
AlertTitle(post.Title).
|
||||
AlertSubtitle(fmt.Sprintf("in r/%s", post.Subreddit)).
|
||||
AlertTitle(title).
|
||||
AlertBody(post.Title).
|
||||
AlertSummaryArg(post.Subreddit).
|
||||
Category("post-watch").
|
||||
Custom("post_title", post.Title).
|
||||
|
|
Loading…
Reference in a new issue