From 20399b5a2e60ba9f2c99d8fcc414394762c6a2e7 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 15 Aug 2026 08:03:17 -0300 Subject: [PATCH] `?ad=` => `?path=` to make @alexgleason happy Co-authored-by: fiatjaf --- AD.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AD.md b/AD.md index 2bcc11e1..eccefb62 100644 --- a/AD.md +++ b/AD.md @@ -10,9 +10,9 @@ 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": [, ...]}`. `"relays"` is optional. If it doesn't exist the `kind:10002` "write" relays of the authors in the filter should be used. +To get the Nostr counterpart of any URL, call that URL's domain at path `https:///.well-known/nostr.json?path=` 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: +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?path=/players` and get a response like: ```yaml {