git ssb

2+

ev / mvd



Commit 350c54f61ff89efdc100ba655b7d6e489e55b093

tweak boost format to a more sensible default

Ev Bogue committed on 10/11/2018, 6:55:03 PM
Parent: a8221d7410bb00bbd9d418fea1249dc77aa1f981

Files changed

compose.jschanged
compose.jsView
@@ -48,16 +48,16 @@
4848 if (opts.boostAuthor) {
4949 var boostName = avatar.cachedName(opts.boostAuthor)
5050 }
5151 if (opts.boostContent) {
52- var textarea = h('textarea.compose', 'Blah')
52 + var textarea = h('textarea.compose')
5353 var str = opts.boostContent
5454 var lines = str.split("\n")
5555 for(var i=0; i<lines.length; i++) {
5656 lines[i] = "> " + lines[i]
5757 }
5858 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 + ')'
6060 textarea.value = content
6161 }
6262
6363 else if (opts.mentions) {

Built with git-ssb-web