Commit 3bbf32ed49e52eec1e7cf83bf66d6d800e78c937
pass through realtime stuff
Dominic Tarr committed on 9/1/2016, 4:38:33 AMParent: 036c8978231012106847e5e0d25e0463358bf602
Files changed
indexes/links.js | changed |
indexes/links.js | ||
---|---|---|
@@ -156,8 +156,9 @@ | ||
156 | 156 | |
157 | 157 | function lookupLinks (opts) { |
158 | 158 | return pull( |
159 | 159 | pull.map(function (op) { |
160 | + if(op.sync) return op | |
160 | 161 | return { |
161 | 162 | _value: op._value, |
162 | 163 | source: op.key[opts.back?3:1], |
163 | 164 | rel: op.key[2], |
@@ -169,8 +170,9 @@ | ||
169 | 170 | // this will scan all links from the source |
170 | 171 | // and filter out those to the dest. not efficient |
171 | 172 | // but probably a rare query. |
172 | 173 | pull.filter(function (data) { |
174 | + if(data.sync) return true | |
173 | 175 | if(opts.rel && opts.rel !== data.rel) return false |
174 | 176 | if(!testLink(data.dest, opts.dest)) return false |
175 | 177 | if(!testLink(data.source, opts.source)) return false |
176 | 178 | return true |
@@ -205,4 +207,5 @@ | ||
205 | 207 | |
206 | 208 | |
207 | 209 | |
208 | 210 | |
211 | + |
Built with git-ssb-web