lbryio / lbry-desktop

A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.
https://lbry.tech
MIT License
3.56k stars 413 forks source link

Notifications: Creator Commented #6022

Closed tiger5226 closed 3 years ago

tiger5226 commented 3 years ago

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 3 years ago

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