Commit 786c0bed4ba4709294e4550523273465e8a22974
filter boxed private messages out of "show updates" collector
Matt McKegg committed on 10/30/2016, 10:51:21 PMParent: 0a238b239741686dff3e8eec203f8d00f0a42486
Files changed
modules/feed-summary.js | changed |
modules/feed-summary.js | ||
---|---|---|
@@ -46,9 +46,10 @@ | ||
46 | 46 … | |
47 | 47 … | pull( |
48 | 48 … | getStream({old: false}), |
49 | 49 … | pull.drain((item) => { |
50 | - if (item && item.value && item.value.content.type !== 'vote') { | |
50 … | + var type = item && item.value && item.value.content.type | |
51 … | + if (type && type !== 'vote') { | |
51 | 52 … | updates.set(updates() + 1) |
52 | 53 … | } |
53 | 54 … | }) |
54 | 55 … | ) |
Built with git-ssb-web