git ssb

9+

cel / ssb-viewer



Commit 86801890069c72884af76b73462e38b8b85697db

Make userfeed less noisy

Anders Rune Jensen committed on 4/25/2018, 3:44:18 PM
Parent: c201e35b8d6663a0a4e9ea13a1a5b0d465d3b9d5

Files changed

index.jschanged
render.jschanged
index.jsView
@@ -213,8 +213,13 @@
213213 function serveFeeds(req, res, following, channelSubscriptions, feedId, name) {
214214 var feedOpts = Object.assign({}, defaultOpts, {
215215 renderPrivate: false,
216216 renderSubscribe: false,
217 + renderVote: false,
218 + renderTalenet: false,
219 + renderChess: false,
220 + renderFollow: false,
221 + renderPub: false,
217222 renderAbout: false
218223 })
219224
220225 pull(
render.jsView
@@ -351,9 +351,14 @@
351351 var c = msg.value.content || {};
352352
353353 if (opts.renderPrivate == false && typeof(msg.value.content) == 'string') return ''
354354 if (opts.renderSubscribe == false && c.type == "channel" && c.subscribed != undefined) return ''
355 + if (opts.renderVote == false && c.type == "vote") return ''
356 + if (opts.renderChess == false && c.type.startsWith("chess")) return ''
357 + if (opts.renderTalenet == false && c.type.startsWith("talenet")) return ''
358 + if (opts.renderFollow == false && c.type == "contact") return ''
355359 if (opts.renderAbout == false && c.type == "about") return ''
360 + if (opts.renderPub == false && c.type == "pub") return ''
356361 if (msg.author.publicWebHosting === false) return h('article', 'User has chosen not to be hosted publicly').outerHTML;
357362
358363 var name = encodeURIComponent(msg.key);
359364 return h('article#' + name,

Built with git-ssb-web