mirror of
https://github.com/fiatjaf/nak.git
synced 2026-06-04 09:41:24 +02:00
ensure we're adding a "K" tag to kind:1111 events.
This commit is contained in:
2
git.go
2
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,
|
||||
}
|
||||
|
||||
1
group.go
1
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,
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user