mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
Fix post reply notifications
This commit is contained in:
parent
a429ee9987
commit
b886dd3fab
1 changed files with 3 additions and 1 deletions
|
@ -434,10 +434,12 @@ func payloadFromMessage(acct domain.Account, msg *reddit.Thing, badgeCount int)
|
|||
payload = payload.Custom("subject", "comment").ThreadID("comment")
|
||||
case (msg.Kind == "t1" && msg.Type == "post_reply"):
|
||||
title := fmt.Sprintf(postReplyNotificationTitleFormat, msg.Author, postTitle)
|
||||
postID := reddit.PostIDFromContext(msg.Context)
|
||||
payload = payload.
|
||||
AlertTitle(title).
|
||||
Category("inbox-post-reply").
|
||||
Custom("post_id", msg.ID).
|
||||
Custom("comment_id", msg.ID).
|
||||
Custom("post_id", postID).
|
||||
Custom("subject", "comment").
|
||||
Custom("type", "post").
|
||||
ThreadID("comment")
|
||||
|
|
Loading…
Reference in a new issue