{"id":"1ff75251942565eeab4d74fa2a5e66ba01b06d3742f166eb125a1bcfc7384302","pubkey":"2b39b4ffe62933df970e19366c22c1e092f953f83fcfed754e0f04d5a3b459f9","created_at":1700141093,"kind":30817,"tags":[["d","nip-08"],["title","NIP-08: Handling Mentions"],["summary","The old #[index] notation for mentioning events and pubkeys inside a note, replaced by NIP-27."],["s","unrecommended"],["t","nostr"],["t","nip"],["alt","A specification: NIP-08: Handling Mentions"],["client","openspecs-import"],["published_at","1651402137"],["proxy","https://github.com/nostr-protocol/nips/blob/656cecc7c0a815b6a2b218d3b5d6f078b3f4dbab/08.md","web"],["x","892a57d8a666a32d2bae65112994a88092a946a76c3d29162f307b8f7fedbd1d"]],"content":"> __Warning__  `unrecommended`: deprecated in favor of [NIP-27](nostr:naddr1qvzqqqrcvypzq2eeknl7v2fnm7tsuxfkds3vrcyjl9fls070a465urcy6k3mgk0eqqrxu6ts95erw8zawy5)\n\nNIP-08\n======\n\nHandling Mentions\n-----------------\n\n`final` `unrecommended` `optional`\n\nThis document standardizes the treatment given by clients of inline mentions of other events and pubkeys inside the content of `text_note`s.\n\nClients that want to allow tagged 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.\n\nOnce a mention is identified, for example, the pubkey `27866e9d854c78ae625b867eefdfa9580434bc3e675be08d2acb526610d96fbe`, the client MUST add that pubkey to the `.tags` with the tag `p`, then replace its textual reference (inside `.content`) with the notation `#[index]` in which \"index\" is equal to the 0-based index of the related tag in the tags array.\n\nThe same process applies for mentioning event IDs.\n\nA client that receives a `text_note` event with such `#[index]` mentions in its `.content` CAN do a search-and-replace using the actual contents from the `.tags` array with the actual pubkey or event ID that is mentioned, doing any desired context augmentation (for example, linking to the pubkey or showing a preview of the mentioned event contents) it wants in the process.\n\nWhere `#[index]` has an `index` that is outside the range of the tags array or points to a tag that is not an `e` or `p` tag or a tag otherwise declared to support this notation, the client MUST NOT perform such replacement or augmentation, but instead display it as normal text.\n","sig":"5bad3a1c200613598eab64aec8447bd9506e6e884511e6f3cc6131030500826515e314ae60214f1783640e3be274b63115abdc72b80e557e9e58aa9d0a8d426f"}