tweak notification content

This commit is contained in:
Andre Medeiros 2021-09-25 14:05:34 -04:00
parent 698c65b1f4
commit bc9456cba2

View file

@ -409,13 +409,16 @@ func payloadFromPost(post *reddit.Thing) *payload.Payload {
payload := payload.
NewPayload().
AlertTitle(post.Title).
AlertBody("I got you something").
AlertSubtitle(fmt.Sprintf("in r/%s", post.Subreddit)).
AlertSummaryArg(post.Subreddit).
Category("post-watch").
Custom("post_title", post.Title).
Custom("post_id", post.ID).
Custom("subreddit", post.Subreddit).
Custom("author", post.Author).
Custom("post_age", post.CreatedAt)
Custom("post_age", post.CreatedAt).
MutableContent().
Sound("traloop.wav")
return payload
}