git ssb

10+

Matt McKegg / patchwork



Commit 81047b107f2fbf0b91a8429e2dd962289779dacb

use normalizeChannel for grouping channels in meta summaries

Matt McKegg committed on 7/8/2018, 1:59:25 AM
Parent: 9816c58432d723e7f6d43363cda79e2b1a0433bb

Files changed

modules/feed/html/meta-summary.jschanged
modules/feed/html/meta-summary.jsView
@@ -148,10 +148,11 @@
148148 }
149149 }
150150 }
151151 } 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
154155 let key = `${from}:${to}`
155156 if (content.subscribed === true) {
156157 if (actions[key] === 'unsubscribed') {
157158 delete actions[key]

Built with git-ssb-web