git ssb

10+

Matt McKegg / patchwork



Commit 46d6da03cf4ba28bbedeafd78648e0111d0bc3f7

whoops, properly fix the feed loading bug caused by invalid contact messages

Matt McKegg committed on 3/17/2017, 3:04:21 AM
Parent: 5521a9a9d761edfed6fe7d0cd2651a77a9670692

Files changed

modules/feed/pull/summary.jschanged
package.jsonchanged
modules/feed/pull/summary.jsView
@@ -2,8 +2,9 @@
22 var pullDefer = require('pull-defer')
33 var pullNext = require('pull-next')
44 var SortedArray = require('sorted-array-functions')
55 var nest = require('depnest')
6 +var ref = require('ssb-ref')
67
78 exports.gives = nest({
89 'feed.pull': [ 'summary' ]
910 })
@@ -152,9 +153,9 @@
152153 function updateContact (msg, groups) {
153154 var c = msg.value.content
154155 var id = msg.value.author
155156 var group = groups[id]
156- if (c.contact) {
157 + if (ref.isFeed(c.contact)) {
157158 if (c.following) {
158159 if (!group) {
159160 group = groups[id] = {
160161 type: 'follow',
package.jsonView
@@ -35,9 +35,9 @@
3535 "mutant-pull-reduce": "^1.1.0",
3636 "non-private-ip": "^1.4.1",
3737 "on-change-network": "0.0.2",
3838 "on-wakeup": "^1.0.1",
39- "patchcore": "~0.4.3",
39 + "patchcore": "~0.4.4",
4040 "prebuild": "github:mmckegg/prebuild#use-npm-conf",
4141 "pull-abortable": "^4.1.0",
4242 "pull-defer": "^0.2.2",
4343 "pull-file": "~1.0.0",

Built with git-ssb-web