mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
Fix notification categories for watchers
This commit is contained in:
parent
e48460572a
commit
63344348df
2 changed files with 2 additions and 2 deletions
|
@ -438,7 +438,7 @@ func payloadFromPost(post *reddit.Thing) *payload.Payload {
|
|||
payload := payload.
|
||||
NewPayload().
|
||||
AlertSummaryArg(post.Subreddit).
|
||||
Category("post-watch").
|
||||
Category("subreddit-watch").
|
||||
Custom("post_title", post.Title).
|
||||
Custom("post_id", post.ID).
|
||||
Custom("subreddit", post.Subreddit).
|
||||
|
|
|
@ -323,7 +323,7 @@ func payloadFromTrendingPost(post *reddit.Thing) *payload.Payload {
|
|||
AlertTitle(title).
|
||||
AlertBody(post.Title).
|
||||
AlertSummaryArg(post.Subreddit).
|
||||
Category("post-watch").
|
||||
Category("trending-post").
|
||||
Custom("post_title", post.Title).
|
||||
Custom("post_id", post.ID).
|
||||
Custom("subreddit", post.Subreddit).
|
||||
|
|
Loading…
Reference in a new issue