Commit 404d138845253f2aee74e3c0032fd9273c8762f9
Document multiple branch values in posts
cel committed on 5/20/2017, 5:21:41 AMParent: 947fa9954fde20423b6f7710c2a817a8a620a293
Files changed
tmpl/docs/message-types/post.md | changed |
tmpl/docs/message-types/post.md | |||
---|---|---|---|
@@ -10,9 +10,9 @@ | |||
10 | 10 … | type: 'post', | |
11 | 11 … | text: String, | |
12 | 12 … | channel: String?, | |
13 | 13 … | root: MsgLink?, | |
14 | - branch: MsgLink?, | ||
14 … | + branch: MsgLink? | MsgLinks?, | ||
15 | 15 … | recps: FeedLinks?, | |
16 | 16 … | mentions: Links? | |
17 | 17 … | } | |
18 | 18 … | ``` | |
@@ -30,9 +30,9 @@ | |||
30 | 30 … | ### Root and branch | |
31 | 31 … | ||
32 | 32 … | `root` and `branch` are for replies. | |
33 | 33 … | `root` should point to the topmost message in the thread. | |
34 | -`branch` should point to the message in the thread which is being replied to. | ||
34 … | +`branch` should point to the message or set of messages in the thread which is being replied to. | ||
35 | 35 … | ||
36 | 36 … | In the first reply of a thread, `root === branch`, and both should be included. | |
37 | 37 … | `root` and `branch` should only point to `type: post` messages. | |
38 | 38 … | If the post is about another message-type, use `mentions`. |
Built with git-ssb-web