-
Notifications
You must be signed in to change notification settings - Fork 578
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
Update NIP-10: add 'mention' marker #80
Update NIP-10: add 'mention' marker #80
Conversation
I think that adding a mention marker would eliminate ambiguity for clients supporting both the deprecated and preferred conventions. I also think that this would allow for extensibility in adding new types of event mentions (for example if we want to add context for a note).
fwiw damus ios's deprecated-nip10 mention parsing code always had a mention marker so this makes sense from the perspective of the damus ios' codebase. |
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.
LGTM
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.
LGTM
we may also want to do this too for p
tags (inherited from post that was replied to, mentioned in post, ...)
Wait, when I first read this PR's title I thought I can't prevent you from creating events with dozens of For me threads can be done with just two |
My suggestion was that ALL |
I don't plan to have more than one 'reply' e tag. there may be multiple 'mention' e tags. mostly want this for scenarios where there is no 'reply' or 'root' e tag, but there is a 'mention' e tag. having the marker 'mention' means there is no ambiguity in this scenario. |
I don't understand. Can you give me a concrete example? Are you talking about a quoted note, for example? |
yes, the 'mention' marker would be for quoted or reposted events. 'mention' marker would not be used for constructing threads. |
Then we should write that on the NIP. |
Looks good to me now. |
Overall, this does solve the problem of ambiguity that it seeks to solve. Also, you could add a line or two, explaining how many of root,reply and mention tags are recommended/acceptable for an event. Since there can be only one root, we should just mention that here, that there can't be more than 1 root tags. And also mention that since a reply can be made to only one event at a time, there can't be more than 1 reply tags. and that mentions can be more than one, but they should ideally be kept at minimum required. |
If a user replies to a top post ( which does not have a parent or any e tag ), then should it be clarified whether there should be a reply tag or a root tag in the replies to that post? Someone could put both too, as in one each of reply and root tags with the same parent event. |
I can add that. IMO it doesn't make sense to have both 'root' and 'reply' marker for top level reply. why would you tag the root event as a 'reply', when it is not a reply to anything? |
yeah, its good to clarify it. |
Closed #86 in favor of this PR. |
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.
yes
I am confused why there could be multiple mentions, if so is the order important again?
what is the usecase of more than 1 mention/quoted event? just for clarification, by "quoted events" do you mean smth like this? |
As I understand, in this mention system as proposed here, a single event can be mentioned by adding it to the tag, and making content something like #[0] where 0 would refer to the mentioned event. That is basically a repost of the mentioned event; then the NIP 18 which was included with pull request #140 becomes a duplicate of this feature; or they are duplicate features doing same things with two different ways. Just wanted to state this explicitly, in case I am missing something. As it is right now, NIP 18 is just duplicating this feature, so it should be deprecated as it is. No need to have two ways of doing same thing. But Kind 6 can be improved; ( NIP 18) right now says the content field should be empty. If kind 6 content field could contain a whole event json as payload, then kind 6 could become a way to share events when someone is not able to find events from relays, which is going to happen a lot. Let say your follower can't see the event you reply to, they ask you for it, you reply with kind 6 with content set to that event. |
i think it would be simpler to simply re-broadcast the original event to your relays where you post the mention / kind-6, so it's also there where they fetch your note referencing it. i get it that it's simple to just re-wrap it, but I feel that it hijacks the original post and keeps a discussion separate from it, which could be a good thing if that's what's expected, so you can talk about an event outside of it, but I don't think that that's the current intent when people use this feature now. |
Quoting a note and repost are NOT the same. |
Having these two things be different kinds is good for clients that want to filter out reposts from original notes of a pubkey, stuff like that. |
I think that adding a mention marker would eliminate ambiguity for clients supporting both the deprecated and preferred conventions. I also think that this would allow for extensibility in adding new types of event mentions (for example if we want to add context for a note).
just thought I would throw this out there, let me know what you think.