mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 11:47:42 +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.
|
payload := payload.
|
||||||
NewPayload().
|
NewPayload().
|
||||||
AlertSummaryArg(post.Subreddit).
|
AlertSummaryArg(post.Subreddit).
|
||||||
Category("post-watch").
|
Category("subreddit-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("subreddit", post.Subreddit).
|
||||||
|
|
|
@ -323,7 +323,7 @@ func payloadFromTrendingPost(post *reddit.Thing) *payload.Payload {
|
||||||
AlertTitle(title).
|
AlertTitle(title).
|
||||||
AlertBody(post.Title).
|
AlertBody(post.Title).
|
||||||
AlertSummaryArg(post.Subreddit).
|
AlertSummaryArg(post.Subreddit).
|
||||||
Category("post-watch").
|
Category("trending-post").
|
||||||
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("subreddit", post.Subreddit).
|
||||||
|
|
Loading…
Reference in a new issue