Commit b02d5837685a7fb8e42751b875db010b8ec801c6
notes on obs.thread
Dominic Tarr committed on 12/8/2017, 6:40:00 AMParent: 1c95e6d66767b4da13c66d99d302553400ea4698
Files changed
app/page/blogShow.js | changed |
app/page/blogShow.js | ||
---|---|---|
@@ -34,10 +34,12 @@ | ||
34 | 34 | |
35 | 35 | const blog = api.blog.html.content(blogMsg) |
36 | 36 | const title = api.blog.html.title(blogMsg) |
37 | 37 | |
38 | + //app.html.comments also loads the thread obs. | |
38 | 39 | const comments = api.app.html.comments(blogMsg.key) |
39 | 40 | |
41 | + //loads entire thread, just to get the branch. | |
40 | 42 | const { lastId: branch } = api.feed.obs.thread(blogMsg.key) |
41 | 43 | |
42 | 44 | const { timeago, channel, markdown, compose } = api.message.html |
43 | 45 |
Built with git-ssb-web