Fix includeRoot. Thanks @dominic

This commit is contained in:
Anders Rune Jensen
2018-04-23 20:52:30 +02:00
parent c71fb2a089
commit 1eb1be440d
+2
View File
@@ -333,6 +333,8 @@ exports.init = function (sbot, config) {
pull.unique('key'),
pull.collect(function (err, links) {
if (err) return respond(res, 500, err.stack || err)
if(includeRoot)
links.unshift(root)
render(links)
})
)