git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit da1367d2d8ed6401096f0f474ba0df556e8cc6d2

Merge branch 'fixes'

Dominic Tarr committed on 8/14/2016, 2:16:00 AM
Parent: 5404eb9aac0d3f76707c6bf2fa5b57c55f46cb64
Parent: bbf9e423c5c7c91fb95d8d2b7f0bd30e6615b94a

Files changed

modules/avatar-image.jschanged
sbot-api.jschanged
modules/avatar-image.jsView
@@ -26,9 +26,10 @@
2626
2727 var last = 0
2828
2929 //blah blah
30-setTimeout(function () {
30+exports.connection_status = function (err) {
31+ if (err) return
3132 pull(
3233 sbot_query({
3334 query: [{
3435 $filter: {
@@ -70,9 +71,9 @@
7071 avatars[a.id] = a
7172
7273 })
7374 )
74-})
75+}
7576
7677 exports.avatar_image = function (author, classes) {
7778 classes = classes || ''
7879 if(classes && 'string' === typeof classes) classes = '.avatar--'+classes
sbot-api.jsView
@@ -117,9 +117,9 @@
117117 return sbot.createUserStream(opts)
118118 }),
119119 sbot_get: rec.async(function (key, cb) {
120120 if(CACHE[key]) cb(null, CACHE[key])
121- sbot.get(key, function (err, value) {
121+ else sbot.get(key, function (err, value) {
122122 if(err) return cb(err)
123123 cb(null, CACHE[key] = value)
124124 })
125125 }),

Built with git-ssb-web