From 74da815bd5764df91b69af7e636b34ba7782f2e0 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 6 Nov 2017 12:46:33 -0500 Subject: Fix follow graph calculation --- lib/contact.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/contact.js b/lib/contact.js index 676c84a..c419921 100644 --- a/lib/contact.js +++ b/lib/contact.js @@ -10,6 +10,7 @@ module.exports = function (sbot, id, cb) { var done = multicb({pluck: 1}) pull( sbot.links2.read({ + reverse: true, // oldest first. ssb-links has this switched query: [ {$filter: { source: id, @@ -31,6 +32,7 @@ module.exports = function (sbot, id, cb) { ) pull( sbot.links2.read({ + reverse: true, // oldest first. ssb-links has this switched query: [ {$filter: { dest: id, -- cgit v1.2.3