git ssb

16+

Dominic / patchbay



Commit 5d532aa9c486a50cd8f14bc6ed99c16741f71391

Handle not yet named avatars

Anders Rune Jensen committed on 12/16/2016, 7:52:57 AM
Parent: 3fdad99f31266c5367fed2b2d4b8c38079e09814

Files changed

modules_basic/avatar-name.jschanged
modules_basic/avatar-name.jsView
@@ -8,9 +8,9 @@
88
99 exports.create = function (api) {
1010
1111 return function name (id) {
12- var n = h('span', id.substring(0, 10))
12 + var n = h('span', id ? id.substring(0, 10) : "")
1313
1414 //choose the most popular name for this person.
1515 //for anything like this you'll see I have used sbot.links2
1616 //which is the ssb-links plugin. as you'll see the query interface

Built with git-ssb-web