about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/streaming/index.js b/streaming/index.js
index cedf3bd2e..7d6bafa3f 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -403,7 +403,7 @@ const startWorker = (workerId) => {
         return;
       }
 
-      if (req.hideBoosts && unpackedPayload.in_reply_to) {
+      if (req.hideBoosts && !!unpackedPayload.in_reply_to) {
         return;
       }
 
@@ -411,7 +411,7 @@ const startWorker = (workerId) => {
         return;
       }
 
-      if (req.filterUndescribed && Array.isArray(unpackedPayload.media_attachments) && unpackedPayload.media_attachments.every(m => !m.description)) {
+      if (req.filterUndescribed && !!unpackedPayload.media_attachments && unpackedPayload.media_attachments.every(m => !m.description)) {
         return;
       }