aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-11-06 12:46:33 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-11-06 12:46:33 -0500
commit74da815bd5764df91b69af7e636b34ba7782f2e0 (patch)
treec665e1a381d90051f484e342b36a0346eb540fdc
parent5a3673608fbc233af6d2ea2e7988040f29b2f6e2 (diff)
downloadpatchfoo-74da815bd5764df91b69af7e636b34ba7782f2e0.tar.gz
patchfoo-74da815bd5764df91b69af7e636b34ba7782f2e0.zip
Fix follow graph calculation
-rw-r--r--lib/contact.js2
1 files changed, 2 insertions, 0 deletions
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,