mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 11:47:42 +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")
|
payload = payload.Custom("subject", "comment").ThreadID("comment")
|
||||||
case (msg.Kind == "t1" && msg.Type == "post_reply"):
|
case (msg.Kind == "t1" && msg.Type == "post_reply"):
|
||||||
title := fmt.Sprintf(postReplyNotificationTitleFormat, msg.Author, postTitle)
|
title := fmt.Sprintf(postReplyNotificationTitleFormat, msg.Author, postTitle)
|
||||||
|
postID := reddit.PostIDFromContext(msg.Context)
|
||||||
payload = payload.
|
payload = payload.
|
||||||
AlertTitle(title).
|
AlertTitle(title).
|
||||||
Category("inbox-post-reply").
|
Category("inbox-post-reply").
|
||||||
Custom("post_id", msg.ID).
|
Custom("comment_id", msg.ID).
|
||||||
|
Custom("post_id", postID).
|
||||||
Custom("subject", "comment").
|
Custom("subject", "comment").
|
||||||
Custom("type", "post").
|
Custom("type", "post").
|
||||||
ThreadID("comment")
|
ThreadID("comment")
|
||||||
|
|
Loading…
Reference in a new issue