Commit 6157b7e40f2661d7446d259ae7fdf6701b108df9
only root messages belonging to user in userShow
mix irving committed on 12/5/2017, 9:38:27 AMParent: ff0da858cd1b870bf477a4854c90fe7c04226300
Files changed
app/page/userShow.js | changed |
app/page/userShow.js | ||
---|---|---|
@@ -52,8 +52,9 @@ | ||
52 | 52 | const BLOG_TYPES = ['blog', 'post'] |
53 | 53 | const blogs = MutantArray() |
54 | 54 | pull( |
55 | 55 | api.sbot.pull.userFeed({id: feed, reverse: true, live: false}), |
56 | + pull.filter(msg => msg.value && msg.value.content && !msg.value.content.root), | |
56 | 57 | pull.filter(msg => BLOG_TYPES.includes(get(msg, 'value.content.type'))), |
57 | 58 | // pull.filter(msg => get(msg, 'value.content.root') === undefined), |
58 | 59 | api.feed.pull.rollup(), |
59 | 60 | //unread state should not be in this file... |
Built with git-ssb-web