116: event content *must* be JSON encoded

This commit is contained in:
Martti Malmi 2024-05-28 14:11:24 +03:00 committed by GitHub
parent 2ecaed58e3
commit c5a2c245ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
116.md
View File

@ -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.