From c41da2e96294dc24ba7e039cd3151916fff664db Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 7 Jul 2020 20:30:40 +0200 Subject: [PATCH] Fix streaming server only working for streams allowing local-only toots --- streaming/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streaming/index.js b/streaming/index.js index 6e75a2e8072..f69064e33d6 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -394,7 +394,7 @@ const startWorker = (workerId) => { } // Only send local-only statuses to logged-in users - if (event === 'update' && payload.local_only && !req.accountId || !allowLocalOnly) { + if (event === 'update' && payload.local_only && !(req.accountId && allowLocalOnly)) { log.silly(req.requestId, `Message ${payload.id} filtered because it was local-only`); return; }