Commit a40521c160b4cb9b3e36e8668612dd3321ff2a96
Support new way of skipping ssb-ooo
cel committed on 12/13/2018, 2:31:38 AMParent: a28f9dbb28295200e56066ac3ae75bc97b74669b
Files changed
lib/app.js | changed |
lib/app.js | ||
---|---|---|
@@ -404,18 +404,14 @@ | ||
404 | 404 … | return about && about.name |
405 | 405 … | } |
406 | 406 … | |
407 | 407 … | function sbotGet(sbot, id, cb) { |
408 | - // try sbot.get via ssb-ooo a50da3928500f3ac0fbead0a1b335a3dd5bbc096 first | |
409 | - try { | |
410 | - sbot.get({id: id, raw: true}, function (err, value) { | |
411 | - if (err && /^Param 0/.test(err.message)) { | |
412 | - return sbot.get(id, cb) | |
413 | - } | |
414 | - cb(err, value) | |
415 | - }) | |
416 | - } catch(e) { | |
417 | - cb(e) | |
408 … | + // ssb-ooo@1.0.1 (a50da3928500f3ac0fbead0a1b335a3dd5bbc096): raw=true | |
409 … | + // ssb-ooo@1.1.0 (f7302d12e56d566b84205bbc0c8b882ae6fd9b12): ooo=false | |
410 … | + if (sbot.ooo) { | |
411 … | + sbot.get({id: id, raw: true, ooo: false}, cb) | |
412 … | + } else { | |
413 … | + sbot.get(id, cb) | |
418 | 414 … | } |
419 | 415 … | } |
420 | 416 … | |
421 | 417 … | function getMsgWithValue(sbot, id, cb) { |
Built with git-ssb-web