Commit 478e04123afe6cee330fbd3a6c626ee0801783ea
contact.obs: ignore invalid friend feed data
Matt McKegg committed on 9/29/2017, 10:17:18 AMParent: dcb68fb50cc8bee039bf3b455495c4057767384e
Files changed
contact/obs.js | changed |
contact/obs.js | ||
---|---|---|
@@ -84,9 +84,9 @@ | ||
84 | 84 | update(dest, reverse[dest], reverseCache) |
85 | 85 | } |
86 | 86 | |
87 | 87 | sync.set(true) |
88 | - } else { | |
88 | + } else if (item && ref.isFeed(item.from) && ref.isFeed(item.to)) { | |
89 | 89 | // handle realtime updates |
90 | 90 | update(item.from, {[item.to]: item.value}, cache) |
91 | 91 | update(item.to, {[item.from]: item.value}, reverseCache) |
92 | 92 | } |
Built with git-ssb-web