about summary refs log tree commit diff
path: root/streaming/index.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-10-13 16:29:17 +0200
committerGitHub <noreply@github.com>2021-10-13 16:29:17 +0200
commitebf2c3195615bb524f6908e84f99887c8775cbc3 (patch)
treeb393f2b0e0f5735338e495b1efe769ef97265e8c /streaming/index.js
parent022006577027ca040f4411489821f2e3311f0db6 (diff)
parent5169b374c64ee48a820c04d7c6e7f1f9235d2417 (diff)
Merge pull request #1620 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'streaming/index.js')
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 9f8ab107e..190f96b51 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -431,7 +431,7 @@ const startWorker = (workerId) => {
       requiredScopes.push('read:statuses');
     }
 
-    if (requiredScopes.some(requiredScope => req.scopes.includes(requiredScope))) {
+    if (req.scopes && requiredScopes.some(requiredScope => req.scopes.includes(requiredScope))) {
       resolve();
       return;
     }