Commit bbf9e423c5c7c91fb95d8d2b7f0bd30e6615b94a
Update avatar images on reconnect
Charles Lehner committed on 8/8/2016, 7:44:38 AMParent: 5225db1d0cd9f2285ba984868432f417086a7a58
Files changed
modules/avatar-image.js | changed |
modules/avatar-image.js | ||
---|---|---|
@@ -26,9 +26,10 @@ | ||
26 | 26 | |
27 | 27 | var last = 0 |
28 | 28 | |
29 | 29 | //blah blah |
30 | -setTimeout(function () { | |
30 | +exports.connection_status = function (err) { | |
31 | + if (err) return | |
31 | 32 | pull( |
32 | 33 | sbot_query({ |
33 | 34 | query: [{ |
34 | 35 | $filter: { |
@@ -70,9 +71,9 @@ | ||
70 | 71 | avatars[a.id] = a |
71 | 72 | |
72 | 73 | }) |
73 | 74 | ) |
74 | -}) | |
75 | +} | |
75 | 76 | |
76 | 77 | exports.avatar_image = function (author, classes) { |
77 | 78 | classes = classes || '' |
78 | 79 | if(classes && 'string' === typeof classes) classes = '.avatar--'+classes |
Built with git-ssb-web