Commit 5233d165cc9dd6811f63268db441635bffdb746f
Improve issue text fallback
cel committed on 11/4/2016, 11:59:10 PMParent: 62c9984626da880fc36f0fdcf4bac4d7d3f2d3b1
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -69,9 +69,9 @@ | |||
69 | 69 … | issue.msg = msg | |
70 | 70 … | issue.author = msg.value.author | |
71 | 71 … | var c = msg.value.content | |
72 | 72 … | issue.project = c.project | |
73 | - issue.text = String(c.text) | ||
73 … | + issue.text = c.text || c.title || JSON.stringify(msg, null, 2) | ||
74 | 74 … | issue.created_at = issue.updated_at = msg.value.timestamp | |
75 | 75 … | if (c.project) | |
76 | 76 … | ssbGet(c.project, gotProjectMsg) | |
77 | 77 … | else |
Built with git-ssb-web