From 66c5eb20bb5671bfc99c74d66aa2694e9a8464ca Mon Sep 17 00:00:00 2001 From: arthurfranca Date: Wed, 14 Feb 2024 19:52:20 -0300 Subject: [PATCH] Better backwards compat --- 00.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/00.md b/00.md index f37a742..00b11e3 100644 --- a/00.md +++ b/00.md @@ -14,8 +14,11 @@ A public event (with no access control), such as of `kind:1`, must be published or updated with a `full_event` tag pointing to a `kind:40042` event address. -It may include one of the following tags holding a preview of the full event content: -`summary`, `image`, `audio`, `video`. The first holds a text excerpt while the others an URL. +It's data should be set to a preview version of the full event. For example, a `kind:1063` of an image file +could set the `url` tag to a blurred version of the image, while a `kind:1` event should +set `.content` to a text excerpt of the full text such as "This is the first sentence of the full text. This text is trimmed...". + +This guarantees backwards compatibility for clients not aware of this NIP. Example: @@ -24,7 +27,7 @@ Example: "kind": 1063, "tags": [ ["full_event", "40042:<32-bytes lowercase hex of a pubkey>:abc", ""], - ["image", ""], + ["url", ""], ["dim", "800x600"] ], "content": "", @@ -74,4 +77,4 @@ a `#A` filter key set to the client's user pubkey. If the user has rights to access the full event, the relay will send it after the NIP-42 authentication flow. -For example: `{ kinds: [40042], authors: ["abc"], #d: ["xyz"], #A: [""], limit: 1 }` +For example: `{ "kinds": [40042], "authors": ["abc"], #d: ["xyz"], "#A": [""], "limit": 1 }`