Skip to content

Commit c3e4fba

Browse files
authored
Merge pull request #62 from fiatjaf/fix/curation-kind-1244
Count kind 1244 replies as reactions in curation
2 parents 2875e3c + eec8f03 commit c3e4fba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

curation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/mailru/easyjson"
1616
)
1717

18-
var reactionKinds = []nostr.Kind{6, 7, 9321, 9735, 9802, 1, 1111}
18+
var reactionKinds = []nostr.Kind{6, 7, 9321, 9735, 9802, 1, 1111, 1244}
1919

2020
func processReactions(ctx context.Context, event nostr.Event) {
2121
totalMembers := pyramid.Members.Size()
@@ -42,7 +42,7 @@ func processReactions(ctx context.Context, event nostr.Event) {
4242
popularVotes[target] = map[nostr.PubKey]struct{}{reaction.PubKey: {}}
4343
}
4444

45-
if reaction.Kind != 1 && reaction.Kind != 1111 {
45+
if reaction.Kind != 1 && reaction.Kind != 1111 && reaction.Kind != 1244 {
4646
if votes, ok := bestVotes[target]; ok {
4747
votes[reaction.PubKey] = struct{}{}
4848
} else {

0 commit comments

Comments
 (0)