about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-07-07 20:30:40 +0200
committerThibG <thib@sitedethib.com>2020-07-07 20:31:45 +0200
commitc41da2e96294dc24ba7e039cd3151916fff664db (patch)
tree63a4f07be711709c59f4da7bd8a57a41baca455d
parent4acb7efb4ba43ec7706e4d8edfe30097b541c909 (diff)
Fix streaming server only working for streams allowing local-only toots
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
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;
       }