Commit 5520046395ab6e0f831cc2f321b11dcad98ed715
fix avatar blob, observe semver compliance
Gwen Bell committed on 3/5/2019, 10:11:34 PMParent: 5460cb13aefa29f1c67f879dd93511638f4aaec2
Files changed
avatar.js | changed |
package.json | changed |
avatar.js | ||
---|---|---|
@@ -33,9 +33,9 @@ | ||
33 | 33 … | return avatarname |
34 | 34 … | } |
35 | 35 … | |
36 | 36 … | 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'}) | |
38 | 38 … | //var img = visualize(new Buffer(key.substring(1), 'base64'), 256) |
39 | 39 … | |
40 | 40 … | if (ref.isFeedId(key)) { |
41 | 41 … | avatar(sbot, id, key, function (err, data) { |
@@ -73,9 +73,9 @@ | ||
73 | 73 … | return avatarname |
74 | 74 … | } |
75 | 75 … | |
76 | 76 … | 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'}) | |
78 | 78 … | //var img = visualize(new Buffer(key.substring(1), 'base64'), 256) |
79 | 79 … | |
80 | 80 … | if (localStorage[key + 'image']) { |
81 | 81 … | img.src = config.blobsUrl + localStorage[key + 'image'] |
Built with git-ssb-web