git ssb

1+

Dominic / secure-scuttlebutt



Commit 3bbf32ed49e52eec1e7cf83bf66d6d800e78c937

pass through realtime stuff

Dominic Tarr committed on 9/1/2016, 4:38:33 AM
Parent: 036c8978231012106847e5e0d25e0463358bf602

Files changed

indexes/links.jschanged
indexes/links.jsView
@@ -156,8 +156,9 @@
156156
157157 function lookupLinks (opts) {
158158 return pull(
159159 pull.map(function (op) {
160+ if(op.sync) return op
160161 return {
161162 _value: op._value,
162163 source: op.key[opts.back?3:1],
163164 rel: op.key[2],
@@ -169,8 +170,9 @@
169170 // this will scan all links from the source
170171 // and filter out those to the dest. not efficient
171172 // but probably a rare query.
172173 pull.filter(function (data) {
174+ if(data.sync) return true
173175 if(opts.rel && opts.rel !== data.rel) return false
174176 if(!testLink(data.dest, opts.dest)) return false
175177 if(!testLink(data.source, opts.source)) return false
176178 return true
@@ -205,4 +207,5 @@
205207
206208
207209
208210
211+

Built with git-ssb-web