Make userfeed less noisy

This commit is contained in:
Anders Rune Jensen
2018-04-25 17:44:18 +02:00
parent c201e35b8d
commit 8680189006
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -352,7 +352,12 @@ function renderMsg(opts, id, msg) {
if (opts.renderPrivate == false && typeof(msg.value.content) == 'string') return ''
if (opts.renderSubscribe == false && c.type == "channel" && c.subscribed != undefined) return ''
if (opts.renderVote == false && c.type == "vote") return ''
if (opts.renderChess == false && c.type.startsWith("chess")) return ''
if (opts.renderTalenet == false && c.type.startsWith("talenet")) return ''
if (opts.renderFollow == false && c.type == "contact") return ''
if (opts.renderAbout == false && c.type == "about") return ''
if (opts.renderPub == false && c.type == "pub") return ''
if (msg.author.publicWebHosting === false) return h('article', 'User has chosen not to be hosted publicly').outerHTML;
var name = encodeURIComponent(msg.key);