From 61ad09caaa702334d74c96b2c8581dabdf4aa90a Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 21 Jan 2025 11:34:34 -0500 Subject: [PATCH] Adds what to do when the image does not match the hash --- B1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/B1.md b/B1.md index a542a7c0..9306667d 100644 --- a/B1.md +++ b/B1.md @@ -10,7 +10,7 @@ This NIP defines `kind:25` as a simple plaintext note that is limited to 140 **v The `.content` property contains some human-readable text. -Clients MUST force outgoing `.content` to be less or equal to 140 characters and crop all incoming events to the same amount. +Clients MUST force outgoing `.content` to be less or equal to 140 characters and crop all incoming events to the same amount. Relays MUST also not accept content with over 140 chars, considering the rules below. Markup languages such as markdown MUST NOT be used. @@ -30,6 +30,6 @@ Quoted notes that are `kind:25` MUST use [NIP-19](NIP-19)'s `nostr:nevent` with Quoted notes that are not `kind:25` MUST not be previewed or rendered by the client. Instead, the Client must render the quoted text from the TLV as a link. The link should open a separate app that can render those events using [NIP-89](https://github.com/nostr-protocol/nips/blob/master/89.md). The `q` tag MUST be used. -Links to images MUST include [NIP-92](92.md) `imeta` tags with required fields: `url`, `m`, `blurhash`, `dim`, and `x` and should be previewed in full-width mode. If the `imeta` tags are not present, images MUST not be previewed and stay as a link. +Links to images MUST include [NIP-92](92.md) `imeta` tags with required fields: `url`, `m`, `blurhash`, `dim`, and `x` and should be previewed in full-width mode. If the `imeta` tags are not present, images MUST not be previewed and stay as a link. If the `x` hash doesn't match the file, the image should not be previewed. Links to websites MUST include [PR1674](https://github.com/nostr-protocol/nips/pull/1674) open graph tags and should be previewed in full-width mode. If the open graph tags are not present, url MUST not be previewed and stay as a link.