mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
116: event content *must* be JSON encoded
This commit is contained in:
parent
2ecaed58e3
commit
c5a2c245ed
2
116.md
2
116.md
|
@ -14,7 +14,7 @@ Relays should parse the event directory from the event path `d` tag and index th
|
|||
|
||||
For backward compatibility, the event directory should also be saved in the event's `f` tag (for "folder"), which is already indexed by some relay implementations, and can be queried using the `#f` filter.
|
||||
|
||||
Event content should be a JSON-encoded value. An empty object `{}` signifies that the entry at the event path is itself a directory. For example, when saving `user/profile/name`: `Bob`, you should also save `user/profile`: `{}` so the subdirectory can be listed under `user`.
|
||||
Event content must be a JSON-encoded value. An empty object `{}` signifies that the entry at the event path is itself a directory. For example, when saving `user/profile/name`: `Bob`, you should also save `user/profile`: `{}` so the subdirectory can be listed under `user`.
|
||||
|
||||
In directory names, slashes should be escaped with a double slash.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user