aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-18 12:32:57 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-18 12:39:56 -0700
commit6cd159533454398fe95b313e6cec9fd8f5db2273 (patch)
tree18a844d7b87d4a24c203dc631bd8e5535718fd94 /lib/serve.js
parentecabd1df717804178ed1d4ab533e85bcd487a433 (diff)
downloadpatchfoo-6cd159533454398fe95b313e6cec9fd8f5db2273.tar.gz
patchfoo-6cd159533454398fe95b313e6cec9fd8f5db2273.zip
Prefer ssb-backlinks for streaming a thread
instead of sbot.links, to catch links more deeply nested in message content, such as in ssb-igo messages
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 92d6065..f8dcf65 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1087,7 +1087,7 @@ Serve.prototype.streamThreadWithComposer = function (opts) {
var channel = opts.channel
pull(
- cat([pull.once(rootMsg), self.app.sbot.links({dest: id, values: true})]),
+ self.app.getThread(rootMsg),
pull.unique('key'),
self.app.unboxMessages(),
pull.through(function (msg) {