Commit 4f805f442d6775913d8beb9c969b08250e508767
channel bug fix!
mix irving committed on 3/21/2017, 3:29:00 AMParent: 70fb8c8a016f2f59cb6933d6505c3d65dd426581
Files changed
router/html/page/channel.js | changed |
router/html/page/channel.js | ||
---|---|---|
@@ -19,9 +19,9 @@ | ||
19 | 19 | exports.create = function (api) { |
20 | 20 | return nest('router.html.page', channelView) |
21 | 21 | |
22 | 22 | function channelView (path) { |
23 | - if (path[0] !== '#') return | |
23 | + if (path && !path.match(/#\w+/)) return | |
24 | 24 | |
25 | 25 | var channel = path.substr(1) |
26 | 26 | |
27 | 27 | var composer = api.message.html.compose({ meta: { type: 'post', channel } }) |
Built with git-ssb-web