git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Commit d72f1769d24688deeb9c8305757bc31331906b03

make sure to include name of recp when replying

Ev Bogue committed on 6/16/2018, 8:54:58 PM
Parent: 3f809c555254ca33f810cd592c5bee5ec9dafb2b

Files changed

render.jschanged
render.jsView
@@ -117,13 +117,15 @@
117117 }
118118 })
119119 )
120120
121+ var name = avatar.name(msg.value.author)
122+
121123 var buttons = h('div.buttons')
122124 buttons.appendChild(h('button.btn', 'Reply', {
123125 onclick: function () {
124126 opts.type = 'post'
125- opts.mentions = '[' + avatar.name(msg.value.author).textContent + '](' + msg.value.author + ')'
127+ opts.mentions = '[' + name.textContent + '](' + msg.value.author + ')'
126128 if (msg.value.content.recps) {
127129 opts.recps = msg.value.content.recps
128130 }
129131 var r = message.childNodes.length - 1

Built with git-ssb-web