From: Thibaut Girka Date: Tue, 7 Jul 2020 18:30:40 +0000 (+0200) Subject: Fix streaming server only working for streams allowing local-only toots X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c41da2e96294dc24ba7e039cd3151916fff664db;p=mastodon.git Fix streaming server only working for streams allowing local-only toots --- diff --git a/streaming/index.js b/streaming/index.js index 6e75a2e80..f69064e33 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; }