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. payload := payload.
NewPayload(). NewPayload().
AlertTitle(post.Title). AlertTitle(post.Title).
AlertBody("I got you something"). AlertSubtitle(fmt.Sprintf("in r/%s", post.Subreddit)).
AlertSummaryArg(post.Subreddit). AlertSummaryArg(post.Subreddit).
Category("post-watch"). Category("post-watch").
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("author", post.Author). Custom("author", post.Author).
Custom("post_age", post.CreatedAt) Custom("post_age", post.CreatedAt).
MutableContent().
Sound("traloop.wav")
return payload return payload
} }