From 5b672e38c8a9c0ba2823dad19b5d98dd7493652a Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 2 Jul 2026 10:31:48 -0300 Subject: [PATCH] mention that relays of the authors should be used when nothing is specified. --- AD.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AD.md b/AD.md index a0d31f0a..2bcc11e1 100644 --- a/AD.md +++ b/AD.md @@ -10,7 +10,7 @@ This NIP defines how to make URLs that can both work as normal URLs or have Nost Such URLs, when pasted on a Nostr client, can be turned into a single event (specially when the filter has `"limit": 1`) or a list of events, and handled accordingly. When used in a normal web browser it can just render HTML like any normal web URL. -To get the Nostr counterpart of any URL, call that URL's domain at path `https:///.well-known/nostr.json?ad=` and look for a key with the desired path in the resulting object. That should contain an object with `{"filter": {}, "relays": [, ...]}`. +To get the Nostr counterpart of any URL, call that URL's domain at path `https:///.well-known/nostr.json?ad=` and look for a key with the desired path in the resulting object. That should contain an object with `{"filter": {}, "relays": [, ...]}`. `"relays"` is optional. If it doesn't exist the `kind:10002` "write" relays of the authors in the filter should be used. For example, upon seeing the URL `https://golf.com/players`, a client will make a `GET` request to `https://golf.com/.well-known/nostr.json?ad=/players` and get a response like: