mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
tweak notification content
This commit is contained in:
parent
698c65b1f4
commit
bc9456cba2
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue