capabilities: advertise nip05_domain

The wallet cannot derive the handle domain; guessing by stripping 'api.' only
works for a smirk.cash-shaped deployment. The host of PUBLIC_API_URL is the
answer, so state it.
This commit is contained in:
jwinterm
2026-08-02 13:25:15 -04:00
parent 38489986af
commit 465ffe5cbd
2 changed files with 30 additions and 0 deletions
+7
View File
@@ -2858,6 +2858,13 @@
}
]
},
"nip05_domain": {
"type": [
"string",
"null"
],
"description": "The domain this instance's handles live at, i.e. the `<domain>` in\n`name@<domain>`, and the host serving `/.well-known/nostr.json`.\n\nAdvertised because the wallet cannot derive it. It used to guess by\nstripping a leading `api.` from the backend URL, which is right only for\na smirk.cash-shaped two-host deployment. An operator serving the API at\n`api.example.org` without also serving `example.org`, or at any other\nname, had their users publish handles that resolve nowhere. Absent when\nthe operator has not set a public URL, in which case the client falls\nback to the old heuristic."
},
"premium": {
"oneOf": [
{