git ssb

2+

ev / mvd



Commit e8c7c2c402ddb7e576c0b672e8ffbc7eff7a15ed

mute messages from author if localStorage[mute:msg.value.author] == true

Ev Bogue committed on 6/2/2018, 6:39:10 PM
Parent: d221f528353915ced2efa52aed3c925af62ddb9a

Files changed

render.jschanged
render.jsView
@@ -11,8 +11,15 @@
1111
1212
1313 module.exports = function (msg) {
1414 var message = h('div.message#' + msg.key.substring(0, 44))
15 +
16 + if (localStorage['mute:' + msg.value.author]) {
17 + var muted = h('span', ' muted')
18 + message.appendChild(tools.mini(msg, muted))
19 + return message
20 + }
21 +
1522 if (msg.value.content.type == 'post') {
1623 var opts = {
1724 type: 'post',
1825 branch: msg.key

Built with git-ssb-web