aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-01-23 12:14:40 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-01-23 12:14:40 -0500
commitb3a2799231fec0ef26b842e7d652c81b41d1c804 (patch)
treec1bb315a46c71b3ebb66287c482ef737376e7599
parent60627f65e8157c6afd288dcacd0296ddc50d8eaf (diff)
downloadpatchfoo-b3a2799231fec0ef26b842e7d652c81b41d1c804.tar.gz
patchfoo-b3a2799231fec0ef26b842e7d652c81b41d1c804.zip
filter out vote from the public stream
-rw-r--r--lib/serve.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index a06f566..f7e8330 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -587,6 +587,9 @@ Serve.prototype.public = function (ext) {
pull(
this.app.createLogStream(opts),
+ pull.filter(msg => {
+ return !msg.value.content.vote
+ }),
this.renderThreadPaginated(opts, null, q),
this.wrapMessages(),
this.wrapPublic(),