Commit 46d6da03cf4ba28bbedeafd78648e0111d0bc3f7
whoops, properly fix the feed loading bug caused by invalid contact messages
Matt McKegg committed on 3/17/2017, 3:04:21 AMParent: 5521a9a9d761edfed6fe7d0cd2651a77a9670692
Files changed
modules/feed/pull/summary.js | changed |
package.json | changed |
modules/feed/pull/summary.js | ||
---|---|---|
@@ -2,8 +2,9 @@ | ||
2 | 2 | var pullDefer = require('pull-defer') |
3 | 3 | var pullNext = require('pull-next') |
4 | 4 | var SortedArray = require('sorted-array-functions') |
5 | 5 | var nest = require('depnest') |
6 | +var ref = require('ssb-ref') | |
6 | 7 | |
7 | 8 | exports.gives = nest({ |
8 | 9 | 'feed.pull': [ 'summary' ] |
9 | 10 | }) |
@@ -152,9 +153,9 @@ | ||
152 | 153 | function updateContact (msg, groups) { |
153 | 154 | var c = msg.value.content |
154 | 155 | var id = msg.value.author |
155 | 156 | var group = groups[id] |
156 | - if (c.contact) { | |
157 | + if (ref.isFeed(c.contact)) { | |
157 | 158 | if (c.following) { |
158 | 159 | if (!group) { |
159 | 160 | group = groups[id] = { |
160 | 161 | type: 'follow', |
package.json | ||
---|---|---|
@@ -35,9 +35,9 @@ | ||
35 | 35 | "mutant-pull-reduce": "^1.1.0", |
36 | 36 | "non-private-ip": "^1.4.1", |
37 | 37 | "on-change-network": "0.0.2", |
38 | 38 | "on-wakeup": "^1.0.1", |
39 | - "patchcore": "~0.4.3", | |
39 | + "patchcore": "~0.4.4", | |
40 | 40 | "prebuild": "github:mmckegg/prebuild#use-npm-conf", |
41 | 41 | "pull-abortable": "^4.1.0", |
42 | 42 | "pull-defer": "^0.2.2", |
43 | 43 | "pull-file": "~1.0.0", |
Built with git-ssb-web