git ssb

16+

Dominic / patchbay



Commit b1da73e22bda6761baeced6c02888d038c2f9ace

fix names counter on profile

mix irving committed on 1/25/2017, 8:07:55 AM
Parent: b5cf9912e3e6845bf8f4aeeebea6559069eeb23d

Files changed

modules_basic/avatar/edit.jschanged
modules_basic/avatar/edit.jsView
@@ -66,15 +66,16 @@
6666 pull.filter(e => e && 'string' == typeof e.link),
6767 pull.unique('link'),
6868 pull.drain(image => images.push(image) )
6969 )
70 +
7071 var namesRecord = MutantObject()
7172 pull(
7273 api.sbot_links({dest: id, rel: 'about', values: true}),
7374 pull.map(e => e.value.content.name),
7475 pull.filter(Boolean),
7576 pull.drain(name => {
76- var n = namesRecord.get('name') || 0
77 + var n = namesRecord.get(name) || 0
7778 namesRecord.put(name, n+1)
7879 })
7980 )
8081 var names = dictToCollection(namesRecord)

Built with git-ssb-web