Commit f2e05ea5dbafcd1d773de66351a65641b3f48090
don't bump private messages for likes (as it creates roots)
Matt McKegg committed on 10/19/2017, 3:29:09 AMParent: 3b604c1cf2345ffd86568bd639cc9bb8f7cfbbad
Files changed
modules/page/html/render/private.js | changed |
modules/page/html/render/private.js | ||
---|---|---|
@@ -29,9 +29,12 @@ | ||
29 | 29 | }, |
30 | 30 | placeholder: i18n('Write a private message') |
31 | 31 | }) |
32 | 32 | |
33 | - var view = api.feed.html.rollup(api.feed.pull.private, { prepend: [compose] }) | |
33 | + var view = api.feed.html.rollup(api.feed.pull.private, { | |
34 | + prepend: [compose], | |
35 | + bumpFilter: (msg) => msg.value.content.type !== 'vote' | |
36 | + }) | |
34 | 37 | |
35 | 38 | view.setAnchor = function (data) { |
36 | 39 | if (data && data.compose && data.compose.to) { |
37 | 40 | var name = api.about.obs.name(data.compose.to) |
Built with git-ssb-web