mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 21:27:42 +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.
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue