From 59fecacbdce859257835e30935f12104a39b4d63 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 17 Mar 2026 20:48:53 -0300 Subject: [PATCH] ensure we're adding a "K" tag to kind:1111 events. --- git.go | 2 ++ group.go | 1 + publish.go | 1 + 3 files changed, 4 insertions(+) diff --git a/git.go b/git.go index ef5ba15..b4dc7b0 100644 --- a/git.go +++ b/git.go @@ -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, } diff --git a/group.go b/group.go index 1aa278e..ee32152 100644 --- a/group.go +++ b/group.go @@ -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, } diff --git a/publish.go b/publish.go index 50f36ec..b99a6c1 100644 --- a/publish.go +++ b/publish.go @@ -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