Fix includeRoot. Thanks @dominic
This commit is contained in:
@@ -333,6 +333,8 @@ exports.init = function (sbot, config) {
|
|||||||
pull.unique('key'),
|
pull.unique('key'),
|
||||||
pull.collect(function (err, links) {
|
pull.collect(function (err, links) {
|
||||||
if (err) return respond(res, 500, err.stack || err)
|
if (err) return respond(res, 500, err.stack || err)
|
||||||
|
if(includeRoot)
|
||||||
|
links.unshift(root)
|
||||||
render(links)
|
render(links)
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user