From 9bfd1e3793d684405d8869b201a6f16351e53ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Arturo=20Cabral=20Mej=C3=ADa?= Date: Tue, 7 Feb 2023 17:48:33 -0500 Subject: [PATCH] docs: make someone happy --- 58.md | 54 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/58.md b/58.md index fe6af327..5c3cfbf0 100644 --- a/58.md +++ b/58.md @@ -51,6 +51,7 @@ Clients SHOULD render the most appropriate badge thumbnail according to the numb ### Example of Badge Event +Event: ```json { "id": "", @@ -59,32 +60,37 @@ Clients SHOULD render the most appropriate badge thumbnail according to the numb "tags": [ ["p", ""] ], - "content": "{ - \"long_desc\": \"This user joined our relay 2 years ago.\", - \"short_desc\": \"Two-Year Club\", - \"image\": \"https://relay.nostr/badges/two-year-club.png\", - \"thumbs\": { - \"512x512\": \"https://relay.nostr/badges/two-year-club-512x512.png\", - \"256x256\": \"https://relay.nostr/badges/two-year-club-256x256.png\", - \"128x128\": \"https://relay.nostr/badges/two-year-club-128x128.png\", - \"64x64\": \"https://relay.nostr/badges/two-year-club-64x64.png\", - \"32x32\": \"https://relay.nostr/badges/two-year-club-32x32.png\", - \"16x16\": \"https://relay.nostr/badges/two-year-club-16x16.png\" - }, - \"sha256sums\": { - \"image\": \"8d43b3081c8091147e03e41878604606c8aa53d1337d49a4d5e0e8c29c223798\", - \"512x512\": \"af94c2afee5321b6acbca7ba00fcfa4ae2e103dda3a3a038e8b0aec4207ef164\", - \"256x256\": \"8c1eaf36d0353e20e30511c473411f1df0b9e58f68daadad972a8a6955824a0e\", - \"128x128\": \"86b0ebe1cf924f39a0eb4cfde5cdfe8a271b882284fc4f1c353bf6589eef1870\", - \"64x64\": \"a92ec141189c8e0228d8c388b9c0e822ecf1347367b834c43c7e82427569e06d\", - \"32x32\": \"6afa09c719f0729253ce8034618743d3a3aadd7aa4215554b7e5aa72b46c41a9\", - \"16x16\": \"abacf2675c05b7710cf853800a95e4191c10b2005540a39adb4b7cdda617249b\" - } - }", + "content": "", ...other fields... } ``` +Content: +```json +{ + "long_desc": "This user joined our relay 2 years ago.", + "short_desc": "Two-Year Club", + "image": "https://relay.nostr/badges/two-year-club.png", + "thumbs": { + "512x512": "https://relay.nostr/badges/two-year-club-512x512.png", + "256x256": "https://relay.nostr/badges/two-year-club-256x256.png", + "128x128": "https://relay.nostr/badges/two-year-club-128x128.png", + "64x64": "https://relay.nostr/badges/two-year-club-64x64.png", + "32x32": "https://relay.nostr/badges/two-year-club-32x32.png", + "16x16": "https://relay.nostr/badges/two-year-club-16x16.png" + }, + "sha256sums": { + "image": "8d43b3081c8091147e03e41878604606c8aa53d1337d49a4d5e0e8c29c223798", + "512x512": "af94c2afee5321b6acbca7ba00fcfa4ae2e103dda3a3a038e8b0aec4207ef164", + "256x256": "8c1eaf36d0353e20e30511c473411f1df0b9e58f68daadad972a8a6955824a0e", + "128x128": "86b0ebe1cf924f39a0eb4cfde5cdfe8a271b882284fc4f1c353bf6589eef1870", + "64x64": "a92ec141189c8e0228d8c388b9c0e822ecf1347367b834c43c7e82427569e06d", + "32x32": "6afa09c719f0729253ce8034618743d3a3aadd7aa4215554b7e5aa72b46c41a9", + "16x16": "abacf2675c05b7710cf853800a95e4191c10b2005540a39adb4b7cdda617249b" + } +} +``` + ### Example of a Profile Badges Event ```json @@ -94,8 +100,8 @@ Clients SHOULD render the most appropriate badge thumbnail according to the numb "content": "", "tags": [ ["d", "profile_badges"], - ["e", ""], - ] + ["e", ""] + ], ...other fields... } ```