git ssb

3+

ev / decent



Commit 5e42d82d953bfb522a9b5690e8c7ebb9a6e4742a

3.9.4 - quick fix on about messages

Ev Bogue committed on 10/27/2017, 6:19:40 PM
Parent: 2c8f0c01ff6d63ef592eaf5ecd778b1ba3705726

Files changed

client/modules/about.jschanged
package.jsonchanged
client/modules/about.jsView
@@ -14,29 +14,34 @@
1414
1515 exports.create = function (api) {
1616 var exports = {}
1717
18- exports.message_content = function (msg) {
18 + exports.message_content = /* = function (msg) {
1919 if(msg.value.content.type == 'about') {
2020 var about = msg.value.content
2121 if (msg.value.content.description) {
2222 return h('span', api.markdown('**Description:** ' + about.description))
2323 }
2424 }
25- }
25 + }*/
26 +
27 +
2628 exports.message_content_mini = function (msg) {
2729 if(msg.value.content.type == 'about') {
2830 var about = msg.value.content
29- // var id = msg.value.content.about
31 + var id = msg.value.content.about
3032 if (msg.value.content.name) {
31- return h('span', ' names themselves ', about.name)
33 + return h('span', ' identifies as ', about.name)
3234 }
3335 if (msg.value.content.image) {
3436 return h('span', ' identifies as ', h('img.avatar--thumbnail', {src: api.blob_url(about.image)}))
3537 }
3638 if (msg.value.content.loc) {
3739 return h('span', h('strong', 'Location: '), about.loc)
3840 }
41 + if (msg.value.content.description) {
42 + return h('span', api.markdown('**Description:** ' + about.description))
43 + } else { return }
3944 }
4045 }
4146 return exports
4247 }
package.jsonView
@@ -1,7 +1,7 @@
11 {
22 "name": "decent",
3- "version": "3.9.3",
3 + "version": "3.9.4",
44 "description": "A decent(tralized) network for communication and development",
55 "scripts": {
66 "start": "node decent server",
77 "build": "node client/scripts/style.js && mkdir -p build && browserify client/index.js | indexhtmlify > build/index.html",

Built with git-ssb-web