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 {
|
func payloadFromPost(post *reddit.Thing) *payload.Payload {
|
||||||
|
title := fmt.Sprintf("📣 Subreddit Watch (r/%s)", post.Subreddit)
|
||||||
|
|
||||||
payload := payload.
|
payload := payload.
|
||||||
NewPayload().
|
NewPayload().
|
||||||
AlertTitle(post.Title).
|
AlertTitle(title).
|
||||||
AlertSubtitle(fmt.Sprintf("in r/%s", post.Subreddit)).
|
AlertBody(post.Title).
|
||||||
AlertSummaryArg(post.Subreddit).
|
AlertSummaryArg(post.Subreddit).
|
||||||
Category("post-watch").
|
Category("post-watch").
|
||||||
Custom("post_title", post.Title).
|
Custom("post_title", post.Title).
|
||||||
|
|
Loading…
Reference in a new issue