cameri / nostream

A Nostr Relay written in TypeScript
MIT License
741 stars 190 forks source link

Use `mailto` scheme in default-settings #299

Closed heguro closed 1 year ago

heguro commented 1 year ago

Currently, the contact value in default-settings.yaml is a plain email address.

https://github.com/Cameri/nostream/blob/58a12546f0f08c3a32ff64fe472b223f026bc184/resources/default-settings.yaml#L6

But NIP-11 says it's should be started with mailto or something.

Contents of this field SHOULD be a URI, using schemes such as mailto or https to provide users with a means of contact.

So I think it would be better to use mailto: in the default contact value as well, as CONFIGURATION.md already does.

https://github.com/Cameri/nostream/blob/58a12546f0f08c3a32ff64fe472b223f026bc184/CONFIGURATION.md?plain=1#L54