Notifications: Creator Commented #6022

Closed
opened 2021-05-05 21:32:41 +02:00 by tiger5226 · 1 comment
tiger5226 commented 2021-05-05 21:32:41 +02:00 (Migrated from github.com)

Notification Data:

Title:          fmt.Sprintf("Creator %s commented on %s", channel.Name, util.StringTruncate(claim.Value.Title, 60)),
Text:           util.StringTruncate(comment.Item.Comment, 100),
Type:           "comment",
Target:         "lbry://" + claim.Name + "#" + claim.ClaimID,
AnalyticsLabel: "comment",

Dynamic Data:

hash:                         d.payload.Comment.CommentID,
parentID:                  d.payload.Comment.ParentID.String,
"comment_author": "lbry://" + channel.Name + "#" + channel.ClaimID,
"claim_title":             claim.Value.Title,
"comment":              comment.Item.Comment,
"amount":                 fmt.Sprintf("%f", d.payload.Amount.ToBTC()),
### Notification Data: ``` Title: fmt.Sprintf("Creator %s commented on %s", channel.Name, util.StringTruncate(claim.Value.Title, 60)), Text: util.StringTruncate(comment.Item.Comment, 100), Type: "comment", Target: "lbry://" + claim.Name + "#" + claim.ClaimID, AnalyticsLabel: "comment", ``` ### Dynamic Data: ``` hash: d.payload.Comment.CommentID, parentID: d.payload.Comment.ParentID.String, "comment_author": "lbry://" + channel.Name + "#" + channel.ClaimID, "claim_title": claim.Value.Title, "comment": comment.Item.Comment, "amount": fmt.Sprintf("%f", d.payload.Amount.ToBTC()),
infinite-persistence commented 2021-05-12 09:07:22 +02:00 (Migrated from github.com)

Note to self: wait for https://github.com/lbryio/internal-apis/pull/1692

Note to self: wait for `https://github.com/lbryio/internal-apis/pull/1692`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#6022
No description provided.