git ssb

10+

Matt McKegg / patchwork



Commit 38b0812f2f3a84faff8a7c371f0d54fe34ad12c8

whoops, not checking that author is you

Matt McKegg committed on 11/10/2016, 10:08:27 AM
Parent: 0df7b2e9903705c4b2201aa29a6a6c1560b102af

Files changed

modules/feed-summary.jschanged
modules/feed-summary.jsView
@@ -18,8 +18,9 @@
1818 var person = plugs.first(exports.person = [])
1919 var many_people = plugs.first(exports.many_people = [])
2020 var people_names = plugs.first(exports.people_names = [])
2121 var sbot_get = plugs.first(exports.sbot_get = [])
22 +var get_id = plugs.first(exports.get_id = [])
2223
2324 exports.feed_summary = function (getStream, prefix, opts) {
2425 var sync = Value(false)
2526 var updates = Value(0)
@@ -56,9 +57,9 @@
5657 pull(
5758 getStream({old: false}),
5859 pull.drain((item) => {
5960 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()) {
6162 return refresh()
6263 }
6364 if (type && type !== 'vote') {
6465 if (filter) {

Built with git-ssb-web