Don't render channel subscribes in user-feed

This commit is contained in:
Anders Rune Jensen
2018-01-11 16:20:07 +01:00
parent 2d14256b09
commit e6bc3b037a
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -350,7 +350,9 @@ function docWrite(str) {
function renderMsg(opts, id, msg) {
if (opts.renderPrivate == false && typeof(msg.value.content) == 'string') return ''
if (opts.renderSubscribe == false && msg.value.content.type == "channel" && msg.value.content.subscribed != undefined) return ''
if (msg.author.publicWebHosting === false) return h('article', 'User has chosen not to be hosted publicly').outerHTML;
var c = msg.value.content || {};
var name = encodeURIComponent(msg.key);
return h('article#' + name,