about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-10-13 15:50:24 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-10-13 15:50:24 +0200
commit1665b842856811c16b904c3b99be6b141a0e1c7b (patch)
tree6fba595782a93008ed3dd6f3ac9e19b7271df6b3 /streaming
parent022006577027ca040f4411489821f2e3311f0db6 (diff)
parent5159ba26e485daaeded2288c1b02bd1e516e1ca6 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `package.json`:
  Not really a conflict, just a glitch-soc-only dependency textually too close
  to an updated upstream one.
- `yarn.lock`:
  Not really a conflict, just a glitch-soc-only dependency textually too close
  to an updated upstream one.
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 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;
     }