tweak notification

This commit is contained in:
Andre Medeiros 2021-09-27 15:23:56 -04:00
parent a26b1f6a32
commit a63171f833

View file

@ -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).