Fix notification categories for watchers

This commit is contained in:
Andre Medeiros 2022-05-01 13:28:12 -04:00
parent e48460572a
commit 63344348df
2 changed files with 2 additions and 2 deletions

View file

@ -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).

View file

@ -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).