Adds what to do when the image does not match the hash

This commit is contained in:
Vitor Pamplona 2025-01-21 11:34:34 -05:00 committed by GitHub
parent 66d05c5dbe
commit 61ad09caaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
B1.md
View File

@ -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. 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. 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. 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. 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.