about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-06-18 15:58:01 +0200
committerThibG <thib@sitedethib.com>2019-06-18 16:50:04 +0200
commit48ec6abacadda1cebaddb537ebd540aca914c994 (patch)
tree24e90f7c375359e16288878ee7df76fd32d8c90c /streaming
parentf57a0f89a8b2b894d028de8e75caddcf3a8c904e (diff)
Fix streaming server crashing when updating filters
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 10df210a3..b016c45f1 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -376,7 +376,7 @@ const startWorker = (workerId) => {
       }
 
       // Only send local-only statuses to logged-in users
-      if (payload.local_only && !req.accountId) {
+      if (event === 'update' && payload.local_only && !req.accountId) {
         log.silly(req.requestId, `Message ${payload.id} filtered because it was local-only`);
         return;
       }