Commit ca213872adba5add2c560efc40b8c58884d989f9
Merge branch 'fix-about' of https://github.com/clehner/patchbay
Dominic Tarr committed on 7/15/2016, 1:16:20 AMParent: 1ffe6d6dd1a7a18ae9de5a224286e102f420febe
Parent: aca3cca93bc332c43026da357c3b9ec4039a48fb
Files changed
modules/about.js | changed |
modules/thread.js | changed |
package.json | changed |
style.css | changed |
modules/about.js | ||
---|---|---|
@@ -1,9 +1,9 @@ | ||
1 | 1 | |
2 | 2 | var h = require('hyperscript') |
3 | 3 | |
4 | 4 | function idLink (id) { |
5 | - return h('a', {href:'#/'+id}, id) | |
5 | + return h('a', {href:'#'+id}, id) | |
6 | 6 | } |
7 | 7 | |
8 | 8 | exports.message_content = function (msg, sbot) { |
9 | 9 | if(msg.value.content.type !== 'about') return |
@@ -14,12 +14,12 @@ | ||
14 | 14 | var about = msg.value.content |
15 | 15 | var id = msg.value.content.about |
16 | 16 | return h('p', |
17 | 17 | about.about === msg.value.author |
18 | - ? h('span', 'self-identifies') | |
18 | + ? h('span', 'self-identifies ') | |
19 | 19 | : h('span', 'identifies ', idLink(id)), |
20 | 20 | ' as ', |
21 | - h('a', {href:"#/"+about.about}, | |
21 | + h('a', {href:"#"+about.about}, | |
22 | 22 | about.name || null, |
23 | 23 | about.image |
24 | 24 | ? h('img', {src:'http://localhost:7777/'+ encodeURIComponent(about.image.link)}) |
25 | 25 | : null |
modules/thread.js | ||
---|---|---|
@@ -88,9 +88,9 @@ | ||
88 | 88 | return 'string' === typeof msg.value.content ? message_unbox(msg) : msg |
89 | 89 | }) |
90 | 90 | |
91 | 91 | if(err) return content.appendChild(h('pre', err.stack)) |
92 | - sort(thread).map(message_render).forEach(function (el) { | |
92 | + sort(thread).map(message_render).filter(Boolean).forEach(function (el) { | |
93 | 93 | content.appendChild(el) |
94 | 94 | }) |
95 | 95 | |
96 | 96 | var branches = sort.heads(thread) |
package.json | ||
---|---|---|
@@ -22,9 +22,9 @@ | ||
22 | 22 | "pull-reconnect": "0.0.1", |
23 | 23 | "pull-scroll": "^0.2.0", |
24 | 24 | "pull-stream": "^3.3.2", |
25 | 25 | "split-buffer": "^1.0.0", |
26 | - "ssb-avatar": "0.0.2", | |
26 | + "ssb-avatar": "^0.1.0", | |
27 | 27 | "ssb-client": "^4.0.0", |
28 | 28 | "ssb-feed": "^2.1.3", |
29 | 29 | "ssb-keys": "^5.1.0", |
30 | 30 | "ssb-markdown": "^3.0.0", |
Built with git-ssb-web