vitorpamplona / amethyst

Nostr client for Android
MIT License
1.17k stars 158 forks source link

NIP-96: omit alt field when no alt text is provided #1049

Closed Sjors closed 2 months ago

Sjors commented 2 months ago

NIP-96 specifies that the alt field is optional: https://github.com/nostr-protocol/nips/blob/master/96.md

Servers that don't support may react in different ways to the presence of this field:

  1. They could ignore it; or
  2. They could throw an error: https://git.v0l.io/Kieran/void-cat-rs/issues/9

The safest way to handle this imo is to omit the field if the user doesn't set it. I suspect the app currently sets it to "".

Not sure if this is a bug or a feature request :-)