Commit 51aae5719eca887b566cf7799cfe9f098483427b
rollup: whoops, don't include other root messages as replies
Matt McKegg committed on 7/3/2017, 3:54:38 AMParent: d82371027a76339ade8a20c9e4f1e2db42705906
Files changed
feed/pull/rollup.js | changed |
feed/pull/rollup.js | ||
---|---|---|
@@ -90,9 +90,9 @@ | ||
90 | 90 … | // use global backlinks cache |
91 | 91 … | var backlinks = api.backlinks.obs.for(rootMessage.key) |
92 | 92 … | onceTrue(backlinks.sync, () => { |
93 | 93 … | var replies = resolve(backlinks).filter((msg) => { |
94 | - return (api.message.sync.root(msg) || rootMessage.key) === rootMessage.key | |
94 … | + return api.message.sync.root(msg) === rootMessage.key | |
95 | 95 … | }) |
96 | 96 … | cb(null, extend(rootMessage, { replies })) |
97 | 97 … | }) |
98 | 98 … | }) |
Built with git-ssb-web