git ssb

1+

gb / ssblist



Commit 5520046395ab6e0f831cc2f321b11dcad98ed715

fix avatar blob, observe semver compliance

Gwen Bell committed on 3/5/2019, 10:11:34 PM
Parent: 5460cb13aefa29f1c67f879dd93511638f4aaec2

Files changed

avatar.jschanged
package.jsonchanged
avatar.jsView
@@ -33,9 +33,9 @@
3333 return avatarname
3434 }
3535
3636 module.exports.image = function (key) {
37- var img = h('img',{src:'/blobs/get/&nI3ntGgvZrNsxc+20uzOIMGyF5w0AvIsOc2kcPcCz/s=.sha256'})
37 + var img = h('img',{src:config.blobsUrl+'&nI3ntGgvZrNsxc+20uzOIMGyF5w0AvIsOc2kcPcCz/s=.sha256'})
3838 //var img = visualize(new Buffer(key.substring(1), 'base64'), 256)
3939
4040 if (ref.isFeedId(key)) {
4141 avatar(sbot, id, key, function (err, data) {
@@ -73,9 +73,9 @@
7373 return avatarname
7474 }
7575
7676 module.exports.cachedImage = function (key) {
77- var img = h('img',{src:'/blobs/get/&nI3ntGgvZrNsxc+20uzOIMGyF5w0AvIsOc2kcPcCz/s=.sha256'})
77 + var img = h('img',{src:config.blobsUrl+'&nI3ntGgvZrNsxc+20uzOIMGyF5w0AvIsOc2kcPcCz/s=.sha256'})
7878 //var img = visualize(new Buffer(key.substring(1), 'base64'), 256)
7979
8080 if (localStorage[key + 'image']) {
8181 img.src = config.blobsUrl + localStorage[key + 'image']
package.jsonView
@@ -1,7 +1,7 @@
11 {
22 "name": "ssblist",
3- "version": "1.0",
3 + "version": "1.0.0",
44 "description": "ssblist",
55 "main": "index.js",
66 "scripts": {
77 "start": "node bin server",

Built with git-ssb-web