diff options
| author | arthurfranca <arthur.a.franca@gmail.com> | 2023-03-21 15:24:05 -0300 |
|---|---|---|
| committer | arthurfranca <arthur.a.franca@gmail.com> | 2023-03-21 15:24:05 -0300 |
| commit | 8b158e92279c08af812307ed7294378ddb8abbdd (patch) | |
| tree | 2b9932f3f97028dff349b7b63f8ce665f8e40a9a | |
| parent | 2394e5cc630741e036e6d0554e59a6611a123030 (diff) | |
Add alternative mention handling NIP
| -rw-r--r-- | 08.md | 2 | ||||
| -rw-r--r-- | 27.md | 17 | ||||
| -rw-r--r-- | README.md | 3 |
3 files changed, 21 insertions, 1 deletions
| @@ -1,3 +1,5 @@ | |||
| 1 | > __Warning__ `unrecommended`: discouraged in favor of NIP-27 | ||
| 2 | |||
| 1 | NIP-08 | 3 | NIP-08 |
| 2 | ====== | 4 | ====== |
| 3 | 5 | ||
| @@ -0,0 +1,17 @@ | |||
| 1 | NIP-27 | ||
| 2 | ====== | ||
| 3 | |||
| 4 | Handling Mentions | ||
| 5 | ----------------- | ||
| 6 | |||
| 7 | `draft` `optional` `author:fiatjaf` `author:scsibug` `author:arthurfranca` | ||
| 8 | |||
| 9 | This document standardizes the treatment given by clients of inline mentions of other events and pubkeys inside the content of `text_note`s. | ||
| 10 | |||
| 11 | Clients that want to allow inline mentions they MUST show an autocomplete component or something analogous to that whenever the user starts typing a special key (for example, "@") or presses some button to include a mention etc -- or these clients can come up with other ways to unambiguously differentiate between mentions and normal text. | ||
| 12 | |||
| 13 | Once a mention is identified, for example, the pubkey `27866e9d854c78ae625b867eefdfa9580434bc3e675be08d2acb526610d96fbe`, the client MUST replace its textual reference (inside `.content`) with the notation `nostr:nprofile1qqsw3dy8cpu...6x2argwghx6egsqstvg` as per NIP-21. If client doesn't support NIP-21, it can instead use a regular http link to a nostr client such as `https://snort.social/p/nprofile1qqsw3dy8cpu...6x2argwghx6egsqstvg`. The client MAY add that pubkey to the `.tags` with the tag `p` if it wishes to notify mentioned user. | ||
| 14 | |||
| 15 | The same process applies for mentioning event IDs, except that the client SHOULD NOT add the event id to the `.tags` with the tag `e` so to not negatively impact thread loading. | ||
| 16 | |||
| 17 | A client that receives a `text_note` event with such `nostr:...` mentions in its `.content` CAN do any desired context augmentation (for example, linking to the pubkey or showing a preview of the mentioned event contents) it wants in the process. | ||
| @@ -9,7 +9,7 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh | |||
| 9 | - [NIP-05: Mapping Nostr keys to DNS-based internet identifiers](05.md) | 9 | - [NIP-05: Mapping Nostr keys to DNS-based internet identifiers](05.md) |
| 10 | - [NIP-06: Basic key derivation from mnemonic seed phrase](06.md) | 10 | - [NIP-06: Basic key derivation from mnemonic seed phrase](06.md) |
| 11 | - [NIP-07: `window.nostr` capability for web browsers](07.md) | 11 | - [NIP-07: `window.nostr` capability for web browsers](07.md) |
| 12 | - [NIP-08: Handling Mentions](08.md) | 12 | - [NIP-08: Handling Mentions](08.md) – `unrecommended`: discouraged in favor of [NIP-27](27.md) |
| 13 | - [NIP-09: Event Deletion](09.md) | 13 | - [NIP-09: Event Deletion](09.md) |
| 14 | - [NIP-10: Conventions for clients' use of `e` and `p` tags in text events](10.md) | 14 | - [NIP-10: Conventions for clients' use of `e` and `p` tags in text events](10.md) |
| 15 | - [NIP-11: Relay Information Document](11.md) | 15 | - [NIP-11: Relay Information Document](11.md) |
| @@ -25,6 +25,7 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh | |||
| 25 | - [NIP-23: Long-form Content](23.md) | 25 | - [NIP-23: Long-form Content](23.md) |
| 26 | - [NIP-25: Reactions](25.md) | 26 | - [NIP-25: Reactions](25.md) |
| 27 | - [NIP-26: Delegated Event Signing](26.md) | 27 | - [NIP-26: Delegated Event Signing](26.md) |
| 28 | - [NIP-27: Handling Mentions](27.md) | ||
| 28 | - [NIP-28: Public Chat](28.md) | 29 | - [NIP-28: Public Chat](28.md) |
| 29 | - [NIP-33: Parameterized Replaceable Events](33.md) | 30 | - [NIP-33: Parameterized Replaceable Events](33.md) |
| 30 | - [NIP-36: Sensitive Content](36.md) | 31 | - [NIP-36: Sensitive Content](36.md) |