]> cat aescling's git repositories - mastodon.git/commitdiff
Fix streaming server crashing when updating filters
authorThibaut Girka <thib@sitedethib.com>
Tue, 18 Jun 2019 13:58:01 +0000 (15:58 +0200)
committerThibG <thib@sitedethib.com>
Tue, 18 Jun 2019 14:50:04 +0000 (16:50 +0200)
streaming/index.js

index 10df210a3dd5792ec4df33415f548f92916033ff..b016c45f15423bbf19386125aa6625dab6daccfd 100644 (file)
@@ -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;
       }