Commit 17c2ee192408638d6292abf8e2f522be1f3b320f
move to name and rank for consistency!
Dominic Tarr committed on 8/1/2016, 7:34:15 AMParent: f2e9b049b948d751537082c3924fa21d4b28cdb5
Files changed
modules/search-box.js | changed |
modules/search-box.js | ||
---|---|---|
@@ -57,9 +57,9 @@ | ||
57 | 57 | var name = '#'+chan.name |
58 | 58 | return { |
59 | 59 | title: name, |
60 | 60 | value: name, |
61 | - subtitle: chan.posts | |
61 | + subtitle: chan.rank | |
62 | 62 | } |
63 | 63 | })) |
64 | 64 | else if(/^@\w/.test(word)) { |
65 | 65 | signified(word, function (_, names) { |
@@ -79,10 +79,10 @@ | ||
79 | 79 | pull( |
80 | 80 | sbot_query({query: [ |
81 | 81 | {$filter: {value: {content: {channel: {$gt: ''}}}}}, |
82 | 82 | {$reduce: { |
83 | - channel: ['value', 'content', 'channel'], | |
84 | - posts: {$count: true} | |
83 | + name: ['value', 'content', 'channel'], | |
84 | + rank: {$count: true} | |
85 | 85 | }} |
86 | 86 | ]}), |
87 | 87 | pull.collect(function (err, chans) { |
88 | 88 | if (err) return console.error(err) |
Built with git-ssb-web