Commit 38b0812f2f3a84faff8a7c371f0d54fe34ad12c8
whoops, not checking that author is you
Matt McKegg committed on 11/10/2016, 10:08:27 AMParent: 0df7b2e9903705c4b2201aa29a6a6c1560b102af
Files changed
modules/feed-summary.js | changed |
modules/feed-summary.js | ||
---|---|---|
@@ -18,8 +18,9 @@ | ||
18 | 18 | var person = plugs.first(exports.person = []) |
19 | 19 | var many_people = plugs.first(exports.many_people = []) |
20 | 20 | var people_names = plugs.first(exports.people_names = []) |
21 | 21 | var sbot_get = plugs.first(exports.sbot_get = []) |
22 | +var get_id = plugs.first(exports.get_id = []) | |
22 | 23 | |
23 | 24 | exports.feed_summary = function (getStream, prefix, opts) { |
24 | 25 | var sync = Value(false) |
25 | 26 | var updates = Value(0) |
@@ -56,9 +57,9 @@ | ||
56 | 57 | pull( |
57 | 58 | getStream({old: false}), |
58 | 59 | pull.drain((item) => { |
59 | 60 | var type = item && item.value && item.value.content.type |
60 | - if (item.value && item.value.author && !updates()) { | |
61 | + if (item.value && item.value.author === get_id() && !updates()) { | |
61 | 62 | return refresh() |
62 | 63 | } |
63 | 64 | if (type && type !== 'vote') { |
64 | 65 | if (filter) { |
Built with git-ssb-web