git ssb

16+

Dominic / patchbay



Commit 17c2ee192408638d6292abf8e2f522be1f3b320f

move to name and rank for consistency!

Dominic Tarr committed on 8/1/2016, 7:34:15 AM
Parent: f2e9b049b948d751537082c3924fa21d4b28cdb5

Files changed

modules/search-box.jschanged
modules/search-box.jsView
@@ -57,9 +57,9 @@
5757 var name = '#'+chan.name
5858 return {
5959 title: name,
6060 value: name,
61- subtitle: chan.posts
61+ subtitle: chan.rank
6262 }
6363 }))
6464 else if(/^@\w/.test(word)) {
6565 signified(word, function (_, names) {
@@ -79,10 +79,10 @@
7979 pull(
8080 sbot_query({query: [
8181 {$filter: {value: {content: {channel: {$gt: ''}}}}},
8282 {$reduce: {
83- channel: ['value', 'content', 'channel'],
84- posts: {$count: true}
83+ name: ['value', 'content', 'channel'],
84+ rank: {$count: true}
8585 }}
8686 ]}),
8787 pull.collect(function (err, chans) {
8888 if (err) return console.error(err)

Built with git-ssb-web