ensure we're adding a "K" tag to kind:1111 events.

This commit is contained in:
fiatjaf
2026-03-17 20:48:53 -03:00
parent faac4d9440
commit 59fecacbdc
3 changed files with 4 additions and 0 deletions

2
git.go
View File

@@ -8,6 +8,7 @@ import (
"path/filepath"
"regexp"
"slices"
"strconv"
"strings"
"sync"
"time"
@@ -1662,6 +1663,7 @@ func gitDiscussionReply(
nostr.Tag{"e", parentEvt.ID.Hex(), parentEvt.Relay.URL},
nostr.Tag{"P", discussionEvt.PubKey.Hex()},
nostr.Tag{"p", parentEvt.PubKey.Hex()},
nostr.Tag{"K", strconv.Itoa(int(discussionEvt.Kind))},
},
Content: content,
}

View File

@@ -594,6 +594,7 @@ write your forum post
nostr.Tag{"P", topic.PubKey.Hex()},
nostr.Tag{"p", parentEvt.PubKey.Hex()},
nostr.Tag{"h", identifier},
nostr.Tag{"K", strconv.Itoa(int(topic.Kind))},
},
Content: content,
}

View File

@@ -109,6 +109,7 @@ example:
if replyEvent.Kind != 1 {
evt.Kind = 1111
evt.Tags = append(evt.Tags, nostr.Tag{"K", fmt.Sprint(replyEvent.Kind)})
}
// add reply tags