Commit 350c54f61ff89efdc100ba655b7d6e489e55b093
tweak boost format to a more sensible default
Ev Bogue committed on 10/11/2018, 6:55:03 PMParent: a8221d7410bb00bbd9d418fea1249dc77aa1f981
Files changed
compose.js | changed |
compose.js | |||
---|---|---|---|
@@ -48,16 +48,16 @@ | |||
48 | 48 … | if (opts.boostAuthor) { | |
49 | 49 … | var boostName = avatar.cachedName(opts.boostAuthor) | |
50 | 50 … | } | |
51 | 51 … | if (opts.boostContent) { | |
52 | - var textarea = h('textarea.compose', 'Blah') | ||
52 … | + var textarea = h('textarea.compose') | ||
53 | 53 … | var str = opts.boostContent | |
54 | 54 … | var lines = str.split("\n") | |
55 | 55 … | for(var i=0; i<lines.length; i++) { | |
56 | 56 … | lines[i] = "> " + lines[i] | |
57 | 57 … | } | |
58 | 58 … | var newContent = lines.join("\n") | |
59 | - var content = 'Boosting: ' + opts.boostKey + ' by [' + boostName.textContent + ']('+ opts.boostAuthor + ')\n\n' + newContent | ||
59 … | + var content = 'Boosting: ' + opts.boostKey + '\n\n' + newContent + '-[' + boostName.textContent + ']('+ opts.boostAuthor + ')' | ||
60 | 60 … | textarea.value = content | |
61 | 61 … | } | |
62 | 62 … | ||
63 | 63 … | else if (opts.mentions) { |
Built with git-ssb-web