Commit e8c7c2c402ddb7e576c0b672e8ffbc7eff7a15ed
mute messages from author if localStorage[mute:msg.value.author] == true
Ev Bogue committed on 6/2/2018, 6:39:10 PMParent: d221f528353915ced2efa52aed3c925af62ddb9a
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -11,8 +11,15 @@ | ||
11 | 11 … | |
12 | 12 … | |
13 | 13 … | module.exports = function (msg) { |
14 | 14 … | 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 … | + | |
15 | 22 … | if (msg.value.content.type == 'post') { |
16 | 23 … | var opts = { |
17 | 24 … | type: 'post', |
18 | 25 … | branch: msg.key |
Built with git-ssb-web