nips/14.md

22 lines
813 B
Markdown
Raw Normal View History

2022-05-24 12:33:11 +00:00
NIP-14
2022-05-21 19:17:49 +00:00
======
2023-07-12 03:38:43 +00:00
Subject tag in Text events
--------------------------
2022-05-21 19:17:49 +00:00
2023-11-16 00:42:51 +00:00
`draft` `optional`
2022-05-21 19:17:49 +00:00
This NIP defines the use of the "subject" tag in text (kind: 1) events.
2022-05-24 12:33:11 +00:00
(implemented in more-speech)
2022-05-21 19:17:49 +00:00
```json
["subject": <string>]
```
2022-05-21 19:17:49 +00:00
Browsers often display threaded lists of messages. The contents of the subject tag can be used in such lists, instead of the more ad hoc approach of using the first few words of the message. This is very similar to the way email browsers display lists of incoming emails by subject rather than by contents.
2022-05-24 12:33:11 +00:00
When replying to a message with a subject, clients SHOULD replicate the subject tag. Clients MAY adorn the subject to denote
that it is a reply. e.g. by prepending "Re:".
2022-05-21 19:17:49 +00:00
2022-05-22 18:29:55 +00:00
Subjects should generally be shorter than 80 chars. Long subjects will likely be trimmed by clients.