Commit 81047b107f2fbf0b91a8429e2dd962289779dacb
use normalizeChannel for grouping channels in meta summaries
Matt McKegg committed on 7/8/2018, 1:59:25 AMParent: 9816c58432d723e7f6d43363cda79e2b1a0433bb
Files changed
modules/feed/html/meta-summary.js | changed |
modules/feed/html/meta-summary.js | ||
---|---|---|
@@ -148,10 +148,11 @@ | ||
148 | 148 | } |
149 | 149 | } |
150 | 150 | } |
151 | 151 | } else if (content.type === 'channel') { |
152 | - if (typeof content.channel === 'string') { // TODO: better channel check | |
153 | - let to = '#' + content.channel | |
152 | + var channel = ref.normalizeChannel(content.channel) | |
153 | + if (channel) { | |
154 | + let to = '#' + channel | |
154 | 155 | let key = `${from}:${to}` |
155 | 156 | if (content.subscribed === true) { |
156 | 157 | if (actions[key] === 'unsubscribed') { |
157 | 158 | delete actions[key] |
Built with git-ssb-web