Commit 1eb1be440d662e83405d844c8ae88402c56c92a6
Fix includeRoot. Thanks @dominic
Anders Rune Jensen committed on 4/23/2018, 6:52:30 PMParent: c71fb2a0899fe94c63306d8822b797c6dd42ef68
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -332,8 +332,10 @@ | ||
332 | 332 … | sbot.links({dest: id, values: true, rel: 'root' }), |
333 | 333 … | pull.unique('key'), |
334 | 334 … | pull.collect(function (err, links) { |
335 | 335 … | if (err) return respond(res, 500, err.stack || err) |
336 … | + if(includeRoot) | |
337 … | + links.unshift(root) | |
336 | 338 … | render(links) |
337 | 339 … | }) |
338 | 340 … | ) |
339 | 341 … | }) |
Built with git-ssb-web