git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 454dc73d98065ea261663450ba6c7433954706bd

filter broken about messages from being rendered

Matt McKegg committed on 3/27/2017, 3:14:44 AM
Parent: 02c37f2952d1e4ff2fea0f375f266d29e1b8c915

Files changed

plugs/message/html/render/about.jschanged
plugs/message/html/render/about.jsView
@@ -1,8 +1,9 @@
11 var h = require('mutant/h')
22 var computed = require('mutant/computed')
33 var nest = require('depnest')
44 var extend = require('xtend')
5+var ref = require('ssb-ref')
56
67 exports.needs = nest({
78 'message.html': {
89 decorate: 'reduce',
@@ -19,9 +20,9 @@
1920
2021 exports.create = function (api) {
2122 return nest('message.html.render', function about (msg, opts) {
2223 if (msg.value.content.type !== 'about') return
23- if (!msg.value.content.about) return
24+ if (!ref.isFeed(msg.value.content.about)) return
2425
2526 var c = msg.value.content
2627 var self = msg.value.author === c.about
2728 var content = []

Built with git-ssb-web