-
Notifications
You must be signed in to change notification settings - Fork 26
Add NIP-22 kind 1111 comment support. signed off by elsat -npub1zafcm… #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…s4xya5ap9zr7xxr0jlrtrattwlesytn2s42030lzu0dwlzqpd26k5
|
@jb55 👀 |
|
d571706 should be in line with nevernesting requirement |
|
this changes the nip10 parsing code which I copied from nostrdb-rs. this repo doesn't contain the tests from there, so before we can change the reply parsing code we'll need to port the nip10 test coverage from rust first. they are found in src/util/nip10.rs in nostrdb-rs |
|
6a23012 👀 |
| return 0; | ||
| } | ||
|
|
||
| void ndb_note_get_reply(struct ndb_note *note, struct ndb_note_reply *reply) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what the point of these functions are
| direct_replies[0] = *ndb_note_meta_counts_direct_replies(entry); | ||
| printf("\t# direct replies %d\n", direct_replies[0]); | ||
| assert(direct_replies[0] == 83); | ||
| assert(direct_replies[0] == 59); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if these are different then that means the reply functions behavior changed/is broken.
…s4xya5ap9zr7xxr0jlrtrattwlesytn2s42030lzu0dwlzqpd26k5
Kind 1111 Support
replies, preserving the true root for comment threads while still falling
back to NIP-10 heuristics for classic notes.
1111 comments when rebuilding metadata.
kind classification for comments, letting stats and tooling report them
distinctly.
Testing
(network access needed).
uses deps/secp256k1).